More path normalisation.

pull/96/head
Jussi Pakkanen 10 years ago
parent 4c52b01a13
commit 00e07e4b3a
  1. 3
      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])

Loading…
Cancel
Save