how do I run a script inside another?

Asked by Raphael Silva

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

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Raphael Silva
Solved:
Last query:
Last reply:
Revision history for this message
Raphael Silva (raphaelcoel) said :
#1

ok