sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33772
Re: [Question #269375]: Load Script
Question #269375 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269375
Status: Open => Answered
RaiMan proposed the following answer:
just tested on my OS X 10.10.4, Java 8, latest build: no problems
# script1 (main script)
#from sikuli import * # not needed in main script
print "hello, I am script1"
try:
if we_are_in_rerun:
print "using reload"
reload(script2)
except:
we_are_in_rerun = True
print "using import"
import script2
# script2
from sikuli import *
print "hello, I am script2"
both scripts in same folder.
-- 1st run after starting the IDE:
hello, I am script1
using import
hello, I am script2
-- repeating run in same IDE session
hello, I am script1
using reload
hello, I am script2
--- Where can I search for this file on a Mac
the .py file is inside the .sikuli folder, which on Mac is bundle/package.
Finder -> File context menu (right mouse button) -> Show package content
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.