sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #10155
Re: [Question #194489]: 10.2: ImportError with other script in same folder --- sys.path has to contain each script folder, that you want to import
Question #194489 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/194489
Fabian gave more information on the question:
I made a brand new install of Sikuli X and all exceptions are gone.
main.sikuli and sub.sikuli are in the same folder (c:\NonReg)
So I ran the main.sikuli :
print "***** before import"
for e in sys.path: print e
okImport = False
try:
import subNotExists
okImport = True
except:
print "***** after import not ok"
for e in sys.path: print e
if okImport:
print "***** after import ok"
for e in sys.path: print e
Here is my message area :
"
***** before import
C:\Program Files\Sikuli X\sikuli-script.jar
C:\Program Files\Sikuli X\Lib
C:\Program Files\Sikuli X\sikuli-script.jar\Lib
__classpath__
__pyclasspath__/
C:/DOCUME~1/genesys/LOCALS~1/Temp/tmp-470306579.sikuli/
C:\DOCUME~1\genesys\LOCALS~1\Temp
C:/Program Files/Sikuli/main.sikuli/
C:\Program Files\Sikuli
.
C:/NonReg/main.sikuli/
C:\NonReg
***** after import not ok
C:\Program Files\Sikuli X\sikuli-script.jar
C:\Program Files\Sikuli X\Lib
C:\Program Files\Sikuli X\sikuli-script.jar\Lib
__classpath__
__pyclasspath__/
C:/DOCUME~1/LOCALS~1/Temp/tmp-470306579.sikuli/
C:\DOCUME~1\LOCALS~1\Temp
C:/Program Files/Sikuli/main.sikuli/
C:\Program Files\Sikuli
.
C:/NonReg/main.sikuli/
C:\NonReg"
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.