How Get file name

Asked by Ezequiel

Hi all, I want to know how can I get the file name of a sikuli script.
for example:
c:\example\sikuli_test.sikuli

I want to know how can I get: sikuli_test.sikuli name to assign a variable. (during execution)
for example:
var= getscriptname()

That is possible??
Thanks in advance.

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
RaiMan (raimund-hocke) said :
#1

run script from command line with option -r and you will have the script name in sys.argv[0]
or use getBundlePath().

Can you help with this problem?

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

To post a message you must log in.