[1.0] problems importing .sikuli scripts in the same directory
hello,
i am trying to import one .sikuli file into another so that i can reuse some code. both files are in the same folder.
this is what i tried first:
from sikuli import *
from java.awt import Toolkit
from java.awt.
from org.sikuli.
import os
#get the directory containing your running .sikuli
myPath = os.path.
if not myPath in sys.path: sys.path.
import oxpToolKit
App.focus('*new 1 - Notepad++')
type('a', KeyModifier.CTRL)
type('c', KeyModifier.CTRL)
print oxpToolKit.
and this is the error message i got:
Exception in thread "Thread-12" java.lang.
at java.util.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
[error] script [ scratch ] stopped with error in line 11
[error] ImportError ( No module named oxpToolKit )
i also tried it with lines 9 and 10 commented out and i got the same error code. im on windows 8
thanks in advance for any help you can give me
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- rob
- Solved:
- Last query:
- Last reply: