6

Hi people first as you know my English is not very poor im sorry for that.
I try to make an automat a sprinkle water and a auto light on a interior garden in aquarium.

For that in python i use main thread, a class Water.py extends Threading and Light.py extends Threading

In the __init__.py file i put my main function that get argv for execution. One of my arguments is -v (--verbose)
I want to pass that args to my class instances.

-I don't want to make one parameter in my constructors because I think we don't passe verbose mode in parameter of constructor.

-I use global not working through de import.

Do you have some magic for me :/ ?

Comments
Add Comment