diff --git a/modules/scripts.py b/modules/scripts.py index be348a70..37a23682 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -29,6 +29,9 @@ scripts = [] def load_scripts(basedir): + if not os.path.exists(basedir): + return + for filename in os.listdir(basedir): path = os.path.join(basedir, filename)