From f292ed87fd7eeffe2dfc95186d094f3dea8083f2 Mon Sep 17 00:00:00 2001 From: ljf Date: Mon, 10 Oct 2022 16:09:22 +0200 Subject: [PATCH] [fix] Config panel list method is broken --- src/utils/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/config.py b/src/utils/config.py index 6f91c5a39..e767816a8 100644 --- a/src/utils/config.py +++ b/src/utils/config.py @@ -209,7 +209,7 @@ class ConfigPanel: try: entities = [ re.match( - "^" + cls.save_path_tpl.format(entity="(?p)") + "$", f + "^" + cls.save_path_tpl.format(entity="(?P[^/]*)") + "$", f ).group("entity") for f in glob.glob(cls.save_path_tpl.format(entity="*")) if os.path.isfile(f) @@ -650,7 +650,7 @@ class ConfigPanel: logger.info("Saving the new configuration...") dir_path = os.path.dirname(os.path.realpath(self.save_path)) if not os.path.exists(dir_path): - mkdir(dir_path, mode=0o700) + mkdir(dir_path, mode=0o700, parents=True) values_to_save = self.future_values if self.save_mode == "diff":