← Back to team overview

sikuli-driver team mailing list archive

[Bug 1226668] Re: Have to close and reopen Sikuli after editing any imported modules

 

To force a reload of an imported module on each run, add a reload
statement for the module after the import statement:

from sikuli.Sikuli import *
from MyModule import *
reload(MyModule)

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1226668

Title:
  Have to close and reopen Sikuli after editing any imported modules

Status in Sikuli:
  New

Bug description:
  
  I've created a Sikuli script which imports functions from another Sikuli script (MyModule). 
  Each time I edit the imported script, I have to close and reopen Sikuli IDE so that the changes take effect.

  It would be a huge time saver if I could compile or have the imported
  modules recompile each time I run my script.

  Example:

  from sikuli.Sikuli import *
  from MyModule import *

  After making changes to MyModule I have to close and reopen Sikuli IDE
  so that the changes take effect.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1226668/+subscriptions


References