mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-26 05:17:44 +01:00
Merge pull request #176 from sbuser/post-processor-fixes
Postprocessing fixes: fix for files in windows with an smb name, added sanity checks for manual post-processing
This commit is contained in:
@@ -162,7 +162,9 @@ def syspath(path, pathmod=None):
|
||||
path = path.decode('utf8', 'replace')
|
||||
|
||||
# Add the magic prefix if it isn't already there
|
||||
if not path.startswith(u'\\\\?\\'):
|
||||
# Not sure what the magic prefix he was adding actually does but if it's a network path
|
||||
# it breaks when we add the prefix - ignore the addition if the \\ is already there
|
||||
if not path.startswith(u'\\\\?\\') and not path.startswith(u'\\'):
|
||||
path = u'\\\\?\\' + path
|
||||
|
||||
return path
|
||||
|
||||
Reference in New Issue
Block a user