How to pass in parameters to sikuli script?
Hi,
I would like to know if there is a way to pass in parameters for a sikuli script? Here is my script:
===========
import getopt
import sys
opts, args = getopt.
print 'opts is:', opts
==========
If I save it as a checkParm.py, and do the following from command line, this is what I got:
>python checkParm.py -a myapplication
opts is: [('-a', 'myapplication')]
But if I put this script into Sikuli IDE and save executable as checkParm.skl, and run it from command line, it seems the Sikuli script cannot get the pass in parameter, see the following:
>Sikuli-IDE.bat checkParm.skl -a myapplication
VDictProxy loaded.
ScreenMatchProxy loaded.
Win32Util loaded.
opts is: []
So is there a way to pass in parameter to sikuli script?
Note that I didn't use the optparse module since Jython doesn't support it yet.
Thanks,
Eileen
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Eileen Wei
- Solved:
- Last query:
- Last reply: