← Back to team overview

sikuli-driver team mailing list archive

[Question #269375]: Load Script

 

New question #269375 on Sikuli:
https://answers.launchpad.net/sikuli/+question/269375

1.1.0(2015-06-23_01:00nightly)/Mac10.10.4/Java8(64)1.8.0_25-b17
Have read and tried many of the questions and answers but still cannot get the load script to work
Each time I made a change I closed and restarted the IDE.

Script1 tried with and without the ".sikuli extention
from sikuli import *
popup("hello, I am script1")
try:
    if we_are_in_rerun:
        print "Lets see which ",
        reload(script2.sikuli)
        #reload(script2)
        print "In run"
except:
    print "In Exception"
    we_are_in_rerun = True
    import script2.sikuli
    #import script2

Script 2
from sikuli import *
popup("hello, I am script2")
print "hello, I am script2" 

Result
popup - hello, I am script1 - Appears

IDE Messages :-
In Exception
[error] script [ Script1 ] stopped with error in line 12
[error] ImportError ( script2.sikuli has no script2.py )

=====================================
I expect its something simple but I am baffled
=====================================


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