← Back to team overview

sikuli-driver team mailing list archive

[Bug 2015283] Re: [2.0.5] IDE: import sub as su and from sub import * need IDE restart on changes in sub --- workaround

 

one way that it worked for me as workaround was to use
import util
reload(util)

util.py is the file

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

Title:
  [2.0.5] IDE: import sub as su and from sub import * need IDE restart
  on changes in sub --- workaround

Status in SikuliX:
  In Progress

Bug description:
  follow up on GitHub: https://github.com/RaiMan/SikuliX1/issues/576

  ------------------- workaround
  only use
  import sub

  -------------------------------------

  I use IDE version 2.0.5, and I'm working with two files:

  -index.sikuli
  -utils.sikuli

  Imagining that I make a change in the utils.sikuli file, for example
  in a print("123") to print("234"), and after saving the file, when I
  run it, it continues to print "123". I need to restart the IDE for it
  to get it to print the "234".

  I've been investigating and I'm not even able to find a solution, from
  for example setting sikuli.properties to not keeping the cache, or
  using the reload method.

  Sorry if this is a dumb question, and my poor English

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



References