← Back to team overview

sikuli-driver team mailing list archive

[Question #226193]: how do I run a script inside another?

 

New question #226193 on Sikuli:
https://answers.launchpad.net/sikuli/+question/226193

I try to run a script that calls another and displays the following error.

My script-----------------------------------------------------------------------
mylib = "C:\mylib"
exec open("C:\mylib\Lancaritem.sikuli\Lancaritem.py").read()
-------------------------------------------------------------------------------

[log] App.open C:\Arquivos de programas\Internet Explorer\iexplore.exe(4964)

[log] TYPE " "

[error] Y1lutenlicag.png looks like a file, but can't be found on the disk. Assume it's text.
[error] Usuado.png looks like a file, but can't be found on the disk. Assume it's text.
[error] Interrompido
[error] Um erro ocorreu na linha 2
[error] Mensagem de erro: Traceback (most recent call last):
 File "C:\DOCUME~1\RAPHAE~1.SIL\CONFIG~1\Temp\sikuli-tmp689186295373547426.py", line 2, in 
 exec open("C:\mylib\Lancaritem.sikuli\Lancaritem.py").read()
 File "", line 35, in 
 Line 198, in file 

 at org.sikuli.script.Region.handleFindFailed(Region.java:421) 
at org.sikuli.script.Region.wait(Region.java:512) 
at org.python.proxies.sikuli.Region$Region$0.super__wait(Unknown Source) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
at java.lang.reflect.Method.invoke(Method.java:597) 

org.sikuli.script.FindFailed: FindFailed: can not find Usuado.png on the screen.
 Line 198, in file 

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.