sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28220
[Bug 1369432] [NEW] [1.1.0-Beta] Jython: user parameters from command line (after -- or --args) not contained in sys.argv -- workaround until fixed
Public bug reported:
***** workaround
the user parameters are available in the returned list
Settings.getArgs()
-----------------------------------------------
Hi,
Previously I used the stable version 1.0.1 of sikuli and I could launch
my sikuli script from command line with this line in my Python scipt:
test_launcher_script.py
p = subprocess.Popen(["/home/krgus1/devel/sikuli-1.0.1/runScript -r " + testPath +
" --args " + SCRIPT_DIR + "/testConfig.config"],
shell=True, cwd=SCRIPT_DIR)
where testPath is the path to my sikuli test: /bla/bla/bla/Test.sikuli
And SCRIPT_DIR is the path to the directory where this script is located. This worked I could access the arguments in my sikuli test script
And then I updated to sikuli 1.1.0
p = subprocess.Popen(["/home/krgus1/devel/sikulix1.1.0/runsikulix -r " + testPath +
" --args " + SCRIPT_DIR + "/testConfig.config"],
shell=True, cwd=SCRIPT_DIR)
The parameters are the same.
And now I cannot get access to the arguments in sys.argv in my sikuli test script
So either is something broken or I am doing it wrong
BR
KG
** Affects: sikuli
Importance: Critical
Assignee: RaiMan (raimund-hocke)
Status: Fix Committed
** Summary changed:
- [1.1.0-Beta] Jython: user parameters from command line (after -- or --args) not contained in sys.argv
+ [1.1.0-Beta] Jython: user parameters from command line (after -- or --args) not contained in sys.argv -- workaround
** Summary changed:
- [1.1.0-Beta] Jython: user parameters from command line (after -- or --args) not contained in sys.argv -- workaround
+ [1.1.0-Beta] Jython: user parameters from command line (after -- or --args) not contained in sys.argv -- workaround until fixed
** Changed in: sikuli
Status: New => Fix Committed
** Changed in: sikuli
Importance: Undecided => Critical
** Changed in: sikuli
Assignee: (unassigned) => RaiMan (raimund-hocke)
** Changed in: sikuli
Milestone: None => 1.1.0
** Description changed:
+ ***** workaround
+ the user parameters are available in the returned list
+ Settings.getArgs()
+
+ -----------------------------------------------
+
Hi,
Previously I used the stable version 1.0.1 of sikuli and I could launch
my sikuli script from command line with this line in my Python scipt:
test_launcher_script.py
p = subprocess.Popen(["/home/krgus1/devel/sikuli-1.0.1/runScript -r " + testPath +
- " --args " + SCRIPT_DIR + "/testConfig.config"],
- shell=True, cwd=SCRIPT_DIR)
+ " --args " + SCRIPT_DIR + "/testConfig.config"],
+ shell=True, cwd=SCRIPT_DIR)
where testPath is the path to my sikuli test: /bla/bla/bla/Test.sikuli
And SCRIPT_DIR is the path to the directory where this script is located. This worked I could access the arguments in my sikuli test script
And then I updated to sikuli 1.1.0
p = subprocess.Popen(["/home/krgus1/devel/sikulix1.1.0/runsikulix -r " + testPath +
- " --args " + SCRIPT_DIR + "/testConfig.config"],
- shell=True, cwd=SCRIPT_DIR)
+ " --args " + SCRIPT_DIR + "/testConfig.config"],
+ shell=True, cwd=SCRIPT_DIR)
The parameters are the same.
And now I cannot get access to the arguments in sys.argv in my sikuli test script
So either is something broken or I am doing it wrong
BR
KG
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1369432
Title:
[1.1.0-Beta] Jython: user parameters from command line (after -- or
--args) not contained in sys.argv -- workaround until fixed
Status in Sikuli:
Fix Committed
Bug description:
***** workaround
the user parameters are available in the returned list
Settings.getArgs()
-----------------------------------------------
Hi,
Previously I used the stable version 1.0.1 of sikuli and I could
launch my sikuli script from command line with this line in my Python
scipt:
test_launcher_script.py
p = subprocess.Popen(["/home/krgus1/devel/sikuli-1.0.1/runScript -r " + testPath +
" --args " + SCRIPT_DIR + "/testConfig.config"],
shell=True, cwd=SCRIPT_DIR)
where testPath is the path to my sikuli test: /bla/bla/bla/Test.sikuli
And SCRIPT_DIR is the path to the directory where this script is located. This worked I could access the arguments in my sikuli test script
And then I updated to sikuli 1.1.0
p = subprocess.Popen(["/home/krgus1/devel/sikulix1.1.0/runsikulix -r " + testPath +
" --args " + SCRIPT_DIR + "/testConfig.config"],
shell=True, cwd=SCRIPT_DIR)
The parameters are the same.
And now I cannot get access to the arguments in sys.argv in my sikuli test script
So either is something broken or I am doing it wrong
BR
KG
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1369432/+subscriptions
Follow ups
References