Sikuli changing application search path

Asked by Joshua Beaudry

Two questions:

One, for some reason Sikuli no longer displays messages from the interpreter in my message box. So I'm flying blind.

Two:
When an application is called from sikuli using either subprocess.call() or App.open() the application then has it's search directory changed. It starts looking for the .xml files it needs in the sikuli folder, rather than it's own install directory. Is this a problem with sikuli or with the application?

This is true of windows 7, 8, and 10.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Karl (k-d) said :
#1

If your code is similar to this,: open("name.txt", 'w')
the file will be saved where your sikulix.jar file is located.

Use a full path to specify the paths and you should be good (i.e. open(getBundleFolder()+"name", 'w'))

Can you help with this problem?

Provide an answer of your own, or ask Joshua Beaudry for more information if necessary.

To post a message you must log in.