From 00e07e4b3a65d15a9e2ff34cfd0bbc43d96fd229 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Fri, 27 Mar 2015 18:38:55 +0200 Subject: [PATCH] More path normalisation. --- interpreter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/interpreter.py b/interpreter.py index d387542b5..48e1e3cb5 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])