More than one script in same folder

Asked by P. P.

I need to run a script from another and I'm following this: https://answers.launchpad.net/sikuli/+faq/2446

But I can not create two scripts in same folder.
For example: If I create the script1.py and script2.py files in script1 folder, I can not open the script.2py.

Could you help me, please?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
P. P. (ppg7) said :
#1

+

I tried create s1.py in s1 folder and s2.py in s2 folder, but it only worked at the first time that I ran.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

If you want to run .py scripts with SikuliX, they have to be in a folder somename.sikuli and must be named somename.py, no matter if there are images or not.

Currently in the SikuliX IDE you can only open the .sikuli "file" which in turn opens the "one" .py file.

So if you want to open your scripts in the SikuliX IDE, you have to wrap each foobar.py in a folder foobar.sikuli.

Revision history for this message
Best RaiMan (raimund-hocke) said :
#3
Revision history for this message
P. P. (ppg7) said :
#4

Thanks RaiMan, that solved my question.