Trying to use system path for sikuli script and import it in other scripts.
I have a sikuli script with some common functions and i am using , something like
myLib = "C:\test"
exec open(myLib+
which works perfect when i use the functions inside.
Now i have to use the same scripts on mac - only difference being - the path to myLib.
So on windows side i tried to put this path "C:\test\
import GenericFunctions (so i don't need to specify any path)
But it fails with error that - there is no module called GenericFunctions.
In one of the previous posts,
https:/
it was suggested :
You can even import other Sikuli scripts as python modules. Suppose you have /somedir/
import sys
sys.path.
import myutil
Note : i have no Images in the Generic functions script.
SO i just have to define this path so that i don't need to modify the scripts for mac.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: