← Back to team overview

sikuli-driver team mailing list archive

[Bug 751991] [NEW] X1.0-rc2 Import maintains old references

 

Public bug reported:

Sorry if duplicate...

When `import` is used IDE maintains the first reference to the imported
script regardless of changes to referenced script

Example:
myScriptPath = "C:\\DEV\\Sikuli"
if not myScriptPath in sys.path: sys.path.append(myScriptPath)
import LoginLogout

LoginLogout.Login()


regardless of changes to Login(), once IDE has imported LoginLogout (upon first run?), subsequent changes to LoginLogut have no change in operation of executing the function.

Reproduction:
Create a simple project
 include the `from sikuli.Sikuli import * ` line as mentioned in the documentation
create a simple function that peforms 1 action popup("Message")
create another project as in the example above
execute the scripts (one calling the other)
change the popup message
notice the original message shows still

Thanks!!!

** Affects: sikuli
     Importance: Undecided
         Status: New


** Tags: ide import

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

Title:
  X1.0-rc2 Import maintains old references

Status in Sikuli:
  New

Bug description:
  Sorry if duplicate...

  When `import` is used IDE maintains the first reference to the
  imported script regardless of changes to referenced script

  Example:
  myScriptPath = "C:\\DEV\\Sikuli"
  if not myScriptPath in sys.path: sys.path.append(myScriptPath)
  import LoginLogout

  LoginLogout.Login()

  
  regardless of changes to Login(), once IDE has imported LoginLogout (upon first run?), subsequent changes to LoginLogut have no change in operation of executing the function.

  Reproduction:
  Create a simple project
   include the `from sikuli.Sikuli import * ` line as mentioned in the documentation
  create a simple function that peforms 1 action popup("Message")
  create another project as in the example above
  execute the scripts (one calling the other)
  change the popup message
  notice the original message shows still

  Thanks!!!



Follow ups

References