Does sikuli have a way to get the currently running sikuli working-dir?

Asked by NoBugs!

Does sikuli have a way to get the currently running sikuli working-dir? That is - the mytest.sikuli/ folder the python file runs in.

I tried import os and os.getcwd() but it gives the path to the sikuli installation.

Thanks for a great IDE :)

Question information

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

getBundlePath()

do you know the docs ?
http://sikulix-2014.readthedocs.org/en/latest/index.html

Revision history for this message
NoBugs! (luke32j) said :
#2

And I just found another way by accident - sys.argv[0] should be the command it run to start it.

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

sys.arv[0]
not guaranteed to always contain the full path in all situations.

getBundlePath() is the first choice