From 28aa6bbca8050c1184f263c3d210b94e2baee131 Mon Sep 17 00:00:00 2001 From: bnnm Date: Fri, 7 Feb 2025 23:48:38 +0100 Subject: [PATCH] cleaner: fix paths with [ ] --- wwiser/tools/wcleaner_unwanted.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wwiser/tools/wcleaner_unwanted.py b/wwiser/tools/wcleaner_unwanted.py index 80dfb1a..608b56b 100644 --- a/wwiser/tools/wcleaner_unwanted.py +++ b/wwiser/tools/wcleaner_unwanted.py @@ -75,6 +75,8 @@ def _parse_txtps(self): txtp_root = self._locator.get_txtp_rootpath() try: + #for char, repl in [('[','\['), ('[','\[')]: + txtp_root = glob.escape(txtp_root) subpath = os.path.join(txtp_root, '**/*.txtp') filenames = glob.glob(subpath, recursive=True) except: