|
|
@ -64,10 +64,13 @@ def sp(path, *args): |
|
|
|
if path != os.path.sep: |
|
|
|
path = path.rstrip(os.path.sep) |
|
|
|
|
|
|
|
# Add a trailing separator in case it is a root folder on windows |
|
|
|
# Add a trailing separator in case it is a root folder on windows (crashes guessit) |
|
|
|
if len(path) == 2 and path[1] == ':': |
|
|
|
path = path + os.path.sep |
|
|
|
|
|
|
|
# Replace *NIX ambiguous '//' at the beginning of a path with '/' (crashes guessit) |
|
|
|
path = re.sub('^//', '/', path) |
|
|
|
|
|
|
|
return path |
|
|
|
|
|
|
|
def ek(original, *args): |
|
|
|