Commit 5535ce7b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fix PathHandler when the path is empty.

parent e382b9a6
......@@ -149,7 +149,10 @@ class PathHandler(object):
if ext in [".mp3", ".wav"]:
return parts[:pos], fn, ext, parts[pos+1:]
pos -= 1
return parts[:-1], parts[-1], "", None
if len(parts) == 0:
return [], "", "", None
return parts[:-1], parts[-1], "", None
def path_parts(self, ext_override=None):
fn = self.__basename + self.extension(ext_override)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment