mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-29 10:41:25 +00:00
add a way to exchange variables between modules
This commit is contained in:
9
backend/shared.py
Normal file
9
backend/shared.py
Normal file
@@ -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