How can i go, Please?. Call Script

Asked by Silvio Tadeu

Script1

popup("hello, I am script1")
import script2
script2.myPop() # call function myPop in script2

Script2
from sikuli import *
popup("hello, I am script2")
def myPop(): # this defines a function
    popup("hello, I am script2")

Error: [error] script [ Script1 ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File "C:\Testes\Script1.sikuli\Script1.py", line 2, in <module> import script2 File "C:\Users\Silvio Aulik\Desktop\sikulix.jar\Lib\sikuli\SikuliImporter.py", line 45, in load_module File "C:\Users\Silvio Aulik\Desktop\sikulix.jar\Lib\sikuli\SikuliImporter.py", line 27, in _load_module ImportError: script2.sikuli has no script2.py

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Silvio Tadeu
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Do not rename scripts.sikuli outside of the IDE.

If you do, take care, that a myscript.sikuli contains a myscript.py (guaranteed when working in the IDE)

Revision history for this message
Silvio Tadeu (staulik) said :
#2

Sorry but I'm not understanding, I'm new to sikuli !. Can you tell me where I went wrong?

Revision history for this message
Silvio Tadeu (staulik) said :
#3

I GOT IT....lol lol...

ehhhhhhhh I'm the Best... lol..