execute other languages scripts in Sikuli's IDE

Asked by can

some difficulties are encountered when use Sikuli, which is the problem of the python Library of the C language.
The cause is need to call PIL(Python Imaging Library) and pywin32(Python extensions for Windows).
but search the list of problems found that those modules are not directly import to Sikuli script.
so I would like to call Python script to execute the code in Sikuli.
Is there such a use?
BTY in order to avoid conflict with the Sikuli, the computer does not install Python

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
can
Solved:
Last query:
Last reply:
Revision history for this message
Eugene S (shragovich) said :
#1

Installing Python on your computer should not create any conflict with Sikuli.

If you have an external script that you want to run, you can do it like that:

os.system("command to run from command line")

For example (on Windows):

os.system("dir")

Cheers,
Eugene

Revision history for this message
can (ting) said :
#2

well thanks for the reply.

about conflict between Sikuli and python because,not so long ago,encountered such a problem about excel (question #271407)
always think that they are in conflict.

so I want to know when sikuli at run time, will search under the Python's path,
if add the bin directory of the python to the environment variables in computer, whether it will affect?

Revision history for this message
Eugene S (shragovich) said :
#3

This is not an official 100% answer.

No, adding anything to your Python path will have no effect on Jython. When launching Sikuli scripts, only the local folder is scanned.

Revision history for this message
can (ting) said :
#4

ok. I understand.I will try again.
Thanks Eugene S.