From 7f98a1d17ebda323f2a671d98914edc085716c51 Mon Sep 17 00:00:00 2001 From: lllyasviel Date: Mon, 29 Jan 2024 20:49:25 -0800 Subject: [PATCH] Update scripts.py --- modules/scripts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/scripts.py b/modules/scripts.py index 0832e113..96f08f97 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -512,6 +512,10 @@ def load_scripts(): scripts_list = list_scripts("scripts", ".py") + list_scripts("modules/processing_scripts", ".py", include_extensions=False) + for s in scripts_list: + if s.basedir not in sys.path: + sys.path = [s] + sys.path + syspath = sys.path print(f'Current System Paths = {syspath}')