← Back to team overview

sikuli-driver team mailing list archive

[Question #209132]: var across module

 

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

I think it is more a question related to Python but if someone can help me, it would be great.
In my main :

main.py
-------
import myModule

if (arg=="foo"):myVar=1
else:myVar=0


In myModule.py, I'd like to use myVar defined in main.py. For instance :

myModule.py
-----------
if (myVar=="0"):print myVar
else:print myVar

Is there a solution to handle this kind of global variable across different module ?
Thanks to help me.

Fabian

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