If either 'name' or 'name_formatted' are absolute paths, then they are of the form: C:\path/to/file.ext (example) By only substituting slashes with the underscore, we get: C:_path_to_file.ext This is still not quite right, infact os.path.basename() returns: _path_to_file.ext Also replace colons with underscores to overcome issues when absolute paths are involved.pull/9302/head
parent
a864269817
commit
6d1e182476
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue