mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-09 13:50:49 +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):
|
||||
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), "config.json"), "r", encoding="utf8") as 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
|
||||
|
||||
def get_input_data(inputs, class_def, outputs={}, prompt={}, extra_data={}):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user