← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #209132]: global variable across modules

 

Question #209132 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/209132

RaiMan proposed the following answer:
You might as well put the sys.argv handling into the myInit.py directly
and leave main untouched:

# myInit.py
if len(sys.argv) > 0 and sys.argv[1]=="foo": EnableVerif=1
else:EnableVerif=0

So you have to edit myInit.py each time, that you want to change the
logic.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.