diff options
-rwxr-xr-x | Tools/scripts/patchtool.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Tools/scripts/patchtool.py b/Tools/scripts/patchtool.py index 7cbeb1d67bc8..3e28abd39335 100755 --- a/Tools/scripts/patchtool.py +++ b/Tools/scripts/patchtool.py @@ -161,8 +161,6 @@ def getrelpath(path, wrksrc): commonpart = commonpart[:-1] path = path[len(commonpart):] wrksrc = wrksrc[len(commonpart):] - if wrksrc == '': - path = path[1:] adjust = '' while os.path.normpath(os.path.join(wrksrc, adjust)) != '.': adjust = os.path.join(adjust, '..') |