sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #10037
Re: [Question #194130]: Issue with Sikuli imports
Question #194130 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/194130
Fabian gave more information on the question:
Of course I've changed all these parameters Roman :)
I've copied your all snippet to test.
* articles.sikuli
import sys
myLib = "c:\\Program Files\\Sikuli\\articles.sikuli\\"
if not myLib in sys.path:
sys.path.append(myLib)
# making unit reload under the IDE (workaround)
if 'webmoves' in sys.modules:
del sys.modules['webmoves']
webmoves = None
del webmoves
# importing your unit
from webmoves import *
# import organizing code end
* webmoves.sikuli
import sys
myLib = "c:\\Program Files\\Sikuli\\articles.sikuli\\"
if not myLib in sys.path:
sys.path.append(myLib)
# making unit reload under the IDE (workaround)
if 'webmoves' in sys.modules:
del sys.modules['webmoves']
webmoves = None
del webmoves
# importing your unit
from webmoves import *
# import organizing code end
These two scripts are in C:\Program Files\Sikuli (in the same folder)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.