[1.1.0] Windows: My imports stopped working when I moved to newest version (sys.path issue?)
Sorry if this has been answered, but I have looked and cannot find an answer for recent builds.
My imports worked all along until I upgraded to the most recent version.
Running windows7pro.
Referencing the SetupLog.txt, I can see that my last (working) version was "SikuliX Package Build: 1.1.0 2014-12-
My current (problem) install shows "Setup: 1.1.0 2015-04-
My development directories look like:
c:/projects/
c:/projects/
c:/projects/
Note "sl" in the same dir as "sikuli".
PYTHONPATH is C:\projects\bin
The scripts for projectX I developed with the last version of the IDE allowed me to:
from sikuli import *
import os, sys
import sl.settings as settings
...etc...
However, when I run the IDE, I now get...
[error] ImportError ( No module named sl )
I have tried to launch the IDE with
C:\usrbin\
Still, the same error.
The only thing that seems to work is
import org.sikuli.
from sikuli import *
import os, sys
sys.path.
import sl.settings as settings
Putting a static path in all my scripts is really not an option -- that is what the sl.settings file is for!
So, how do I get that sys.path functionality back?
That is, how can I either
1) Structure my files so that imports work for free -- like before
--or--
2) I can provide path info on the runsikulix.cmd command line
Thank You
forrest
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask forrest for more information if necessary.