add a way to exchange variables between modules
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
class VariableHolder:
|
||||||
|
def __setattr__(self, name, value):
|
||||||
|
self.__dict__[name] = value
|
||||||
|
|
||||||
|
def __getattr__(self, name):
|
||||||
|
return self.__dict__.get(name, None)
|
||||||
|
|
||||||
|
|
||||||
|
global_variables = VariableHolder()
|
||||||
Reference in New Issue
Block a user