mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 06:10:50 +08:00
Tidy up
This commit is contained in:
parent
4f93cc7eda
commit
358194a71c
2
main.py
2
main.py
@ -46,7 +46,7 @@ import nodes
|
|||||||
def config(key, default=None):
|
def config(key, default=None):
|
||||||
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), "config.json"), "r", encoding="utf8") as file:
|
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), "config.json"), "r", encoding="utf8") as file:
|
||||||
config = json.load(file)
|
config = json.load(file)
|
||||||
config_item = config.get(key) if config.get(key) != "" else default
|
config_item = config.get(key) if config.get(key) else default
|
||||||
return config_item
|
return config_item
|
||||||
|
|
||||||
def get_input_data(inputs, class_def, outputs={}, prompt={}, extra_data={}):
|
def get_input_data(inputs, class_def, outputs={}, prompt={}, extra_data={}):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user