← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #194489]: ImportError

 

Question #194489 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/194489

    Status: Solved => Open

Fabian is still having a problem:
In my case it doesn't work.
I tested :
# c:\NonReg\main.sikuli
myScriptPath=r"C:\NonReg"
if not myScriptPath in sys.path: sys.path.append(myScriptPath)
import sub

# c:\NonReg\sub.sikuli
from sikuli import *

and I have always the same issue "ImportError: No module named VPsLogin"

It's working only if I have :
# c:\NonReg\main.sikuli
myScriptPath=r"C:\NonReg\sub.sikuli"
if not myScriptPath in sys.path: sys.path.append(myScriptPath)
import sub

# c:\NonReg\sub.sikuli
from sikuli.Sikuli import *

That's really weird but if I'm able to work in this way, it doesn't
matter for me

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