aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
Diffstat (limited to 'interpreter.py')
-rw-r--r--interpreter.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/interpreter.py b/interpreter.py
index d387542..48e1e3c 100644
--- a/interpreter.py
+++ b/interpreter.py
@@ -1220,8 +1220,7 @@ class Interpreter():
vcs_cmd = kwargs.get('command', None)
if vcs_cmd and not isinstance(vcs_cmd, list):
vcs_cmd = [vcs_cmd]
- # source_dir = os.path.split(os.path.abspath(kwargs.get('infile')))[0]
- source_dir = os.path.join(self.environment.get_source_dir(), self.subdir)
+ source_dir = os.path.normpath(os.path.join(self.environment.get_source_dir(), self.subdir))
if vcs_cmd:
# Is the command an executable in path or maybe a script in the source tree?
vcs_cmd[0] = shutil.which(vcs_cmd[0]) or os.path.join(source_dir, vcs_cmd[0])