← Back to team overview

sikuli-driver team mailing list archive

[Bug 725026] [NEW] Call to an function in external file with argument failed

 

Public bug reported:

Call to an function in external file with argument failed. Maybe I
missed something (indent is not proper in the bug report, but good in my
scripts)

What is not working
    in CallTest.sikuli:
        myScriptPath = "c:\\Temp"
        if not myScriptPath in sys.path: sys.path.append(myScriptPath)
        from cTest import fTest
	vArg = '1'
        fTest( vArg )
   in fTest.sikuli:
        from sikuli.Sikuli import *
        def fTest( nEntry ):
	     popup( nEntry )

I got an error at call fTest( vArg )   line 5 of  CallTest.sikuli.


What is working in CallTest01.sikuli:

   def fTest( nEntry ):
	   popup( nEntry )
	
   vArg = '1'
   fTest( vArg )


What is working 
   in CallTest02.sikuli:
        myScriptPath = "c:\\Temp"
        if not myScriptPath in sys.path: sys.path.append(myScriptPath)
        from cTest02 import fTest
        fTest( )
   in fTest02.sikuli:
        from sikuli.Sikuli import *
        def fTest():
	     popup( "Test ok" )

The popup is here.

Sikuli version: 1.0rc1
Win 7 64 Bit

** Affects: sikuli
     Importance: Undecided
         Status: New

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

Title:
  Call to an function in external file with argument failed

Status in Sikuli:
  New

Bug description:
  Call to an function in external file with argument failed. Maybe I
  missed something (indent is not proper in the bug report, but good in
  my scripts)

  What is not working
      in CallTest.sikuli:
          myScriptPath = "c:\\Temp"
          if not myScriptPath in sys.path: sys.path.append(myScriptPath)
          from cTest import fTest
  	vArg = '1'
          fTest( vArg )
     in fTest.sikuli:
          from sikuli.Sikuli import *
          def fTest( nEntry ):
  	     popup( nEntry )

  I got an error at call fTest( vArg )   line 5 of  CallTest.sikuli.

  
  What is working in CallTest01.sikuli:

     def fTest( nEntry ):
  	   popup( nEntry )
  	
     vArg = '1'
     fTest( vArg )

  
  What is working 
     in CallTest02.sikuli:
          myScriptPath = "c:\\Temp"
          if not myScriptPath in sys.path: sys.path.append(myScriptPath)
          from cTest02 import fTest
          fTest( )
     in fTest02.sikuli:
          from sikuli.Sikuli import *
          def fTest():
  	     popup( "Test ok" )

  The popup is here.

  Sikuli version: 1.0rc1
  Win 7 64 Bit



Follow ups

References