sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #01537
[Bug 725026] Re: Call to an function in external file with argument failed
no problem :-)
solved?
--
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
References