Skip to content

Commit

Permalink
cleaner: fix paths with [ ]
Browse files Browse the repository at this point in the history
  • Loading branch information
bnnm committed Feb 7, 2025
1 parent 15364db commit 28aa6bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wwiser/tools/wcleaner_unwanted.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 28aa6bb

Please sign in to comment.