Run same command,the result with sikuli 1.1.4 is different from sikuli 1.1.3

Asked by Linda on 2019-09-11

I try with the command:
os.path.dirname(sys.argv[0])

Get the response with sikuli 1.1.3:
C:/Users/Administrator/Desktop/sikuli

Get different response with sikuli 1.1.4:
C:/Users/Administrator/Desktop/sikuli/XXX.sikuli

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2019-09-11
Last query:
2019-09-11
Last reply:
2019-09-11
Best RaiMan (raimund-hocke) said : #1

Yes, this has changed, since the filename in sys.argv[0] should be the one of the running Python script.

If you want to have the same as in1.1.3:
os.path.dirname(getBundlepath())

Linda (kkea55534) said : #2

Thanks RaiMan, that solved my question.