Skip to content

Commit 28aa6bb

Browse files
committedFeb 7, 2025·
cleaner: fix paths with [ ]
1 parent 15364db commit 28aa6bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎wwiser/tools/wcleaner_unwanted.py

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def _parse_txtps(self):
7575
txtp_root = self._locator.get_txtp_rootpath()
7676

7777
try:
78+
#for char, repl in [('[','\['), ('[','\[')]:
79+
txtp_root = glob.escape(txtp_root)
7880
subpath = os.path.join(txtp_root, '**/*.txtp')
7981
filenames = glob.glob(subpath, recursive=True)
8082
except:

0 commit comments

Comments
 (0)
Please sign in to comment.