Minor fix

This commit is contained in:
Miroslav Stampar 2014-05-13 15:36:28 +02:00
parent 4e8b41b869
commit 0f581ccb6c

View File

@ -214,7 +214,7 @@ class Web:
uploaded = False
directory = ntToPosixSlashes(normalizePath(directory))
if not isWindowsDriveLetterPath(directory) and directory[0] != '/':
if not isWindowsDriveLetterPath(directory) and not directory.startswith('/'):
directory = "/%s" % directory
else:
directory = directory[2:] if isWindowsDriveLetterPath(directory) else directory