Wed, 21 Dec 2016 13:25:01 +0100
Fix for Utilities.relativePath() not considering the path to make relative to ending in '/' or '\'.
Utilities/__init__.py | file | annotate | diff | comparison | revisions |
--- a/Utilities/__init__.py Mon Dec 19 13:30:52 2016 +0100 +++ b/Utilities/__init__.py Wed Dec 21 13:25:01 2016 +0100 @@ -861,7 +861,10 @@ if path == start: return "" else: - return path[len(start) + 1:] + if start.endswith(("/", "\\")): + return path[len(start):] + else: + return path[len(start) + 1:] else: return path