← Back to team overview

sikuli-driver team mailing list archive

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

    Status: Open => Solved

Fabian confirmed that the question is solved:
I made a new test with the x release :
main.sikuli :
myScriptPath=r"C:\NonReg"
if not myScriptPath in sys.path:sys.path.append(myScriptPath)
import VPsLogin
VPsLogin.sub1()
....

VPsLogin.sikuli :
from sikuli import *
def sub1(self):
....

And it works !!
So it was clearly a release issue.
Thanks a lot for your time and your help RaiMan !!!

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.