sys.argv[0] when running sikulix as server

Asked by Steph on 2018-03-13

It seems like sys.argv[0] is set to None when I run a script via sikulix server.

Is there any way to have something meaningful for sys.argv[0]?

I'm using sikulix 1.1.2 on Linux (centos 7.4)

What is sent on port 50001 is:

RUN/t000_a_in?A=1;B=2;C=abcde

And inside t000_a_in.py:
if sys.argv[0] == None:
    print "Is None"

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2018-03-13
Last reply:
2018-03-14
RaiMan (raimund-hocke) said : #1

thanks for finding.

sys.argv[0] in Python conventions should contain the path of the running script.

This is a bug in the script runner, that I will fix in version 1.1.3.

Can you help with this problem?

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

To post a message you must log in.