diff --git a/FATtools/utils.py b/FATtools/utils.py index 72d5af1..ffe3261 100644 --- a/FATtools/utils.py +++ b/FATtools/utils.py @@ -193,7 +193,10 @@ def calc_rel_path(base, child): # returns base if they don't share anything if not i: return base n = len(child_parts) - 1 - i # counts path separators - relpath = '' + if n: + relpath = '' + else: + relpath = '.\\' while n: relpath += '..\\' n -= 1 diff --git a/FATtools/version.py b/FATtools/version.py index 1f410b8..aa8d766 100644 --- a/FATtools/version.py +++ b/FATtools/version.py @@ -1 +1 @@ -__version__ = '1.0.36' \ No newline at end of file +__version__ = '1.0.37' \ No newline at end of file