← Back to team overview

sikuli-driver team mailing list archive

[Bug 715799] [NEW] Import for existing scripts doesn't work until re-opening Sikuli

 

Public bug reported:

Steps to reproduce:
1. Create a library file containing scripts like:
    def launchApp (self):
     openApp ("c:\\libs\\launch_app_BE.bat")
     openApp ("c:\\libs\\launch_app_FE.bat")

2. Call this script from another file:
    launchApp (None)

Result: "NameError: name 'launchApp' is not defined"

Now close Sikuli and open it again and re-execute the steps described
above -> Result:

Environment:
Sikuli X-1.0rc1
Windows XP SP3

** Affects: sikuli
     Importance: Undecided
         Status: New

** Description changed:

  Steps to reproduce:
  1. Create a library file containing scripts like:
-     def launchApp (self):
- 	    openApp ("c:\\libs\\launch_app_BE.bat")
- 	    openApp ("c:\\libs\\launch_app_FE.bat")
+     def launchApp (self):
+      openApp ("c:\\libs\\launch_app_BE.bat")
+      openApp ("c:\\libs\\launch_app_FE.bat")
  
  2. Call this script from another file:
-     launchApp (None)
+     launchApp (None)
  
  Result: "NameError: name 'launchApp' is not defined"
  
  Now close Sikuli and open it again and re-execute the steps described
  above -> Result:
+ 
+ Environment:
+ Sikuli X-1.0rc1
+ Windows XP SP3

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

Title:
  Import for existing scripts doesn't work until re-opening Sikuli

Status in Sikuli:
  New

Bug description:
  Steps to reproduce:
  1. Create a library file containing scripts like:
      def launchApp (self):
       openApp ("c:\\libs\\launch_app_BE.bat")
       openApp ("c:\\libs\\launch_app_FE.bat")

  2. Call this script from another file:
      launchApp (None)

  Result: "NameError: name 'launchApp' is not defined"

  Now close Sikuli and open it again and re-execute the steps described
  above -> Result:

  Environment:
  Sikuli X-1.0rc1
  Windows XP SP3





Follow ups

References