Fix a bug where script would crash due to paths being normalised

This commit is contained in:
Kjistóf 2017-02-13 15:50:11 +01:00 committed by Kristóf Tóth
parent 00b39bb305
commit fcf06ef580
1 changed files with 2 additions and 3 deletions

View File

@ -20,9 +20,8 @@ for path in argv[1:]:
joinpath
(
dir,
''.join(ch for ch in file
''.join(ch for ch in file.replace(' ', '_')
if ch.isalnum()
or ch in whitelist)
)
)
.replace(' ', '_'))
))