sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11590
[Question #202694]: Importing one Sikuli script in another from same directory
New question #202694 on Sikuli:
https://answers.launchpad.net/sikuli/+question/202694
Hi guys,
i'm using sikuli x-1.0rc3 in the sikuliIDE. I'm trying to import a file called TesterApi.sikuli into AboutTest.sikuli which are both in the same directory (/Users/dobri/Documents/SScripts)
my TesterAPI script (the one i am trying to import starts with:
from sikuli import *
AboutTest.sikuli starts with:
import os
myPath = os.path.dirname(getBundlePath())
if not myPath in sys.path: sys.path.append(myPath)
import TesterApi.sikuli
on the 4th line i get an error:
File "/var/folders/_k/_8pdrs7n7072ygxh1rz7dxlm0000gp/T/sikuli-tmp8726306589016824619.py", line 5, in
import TesterApi.sikuli
File "/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/sikuli/SikuliImporter.py", line 45, in load_module
File "/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/sikuli/SikuliImporter.py", line 25, in _load_module
ImportError: No module named TesterApi
I've tried everything on the forum, but nothing seems to work. Any kind of help will be greatly appreciated
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.