diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-03-27 18:38:55 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-03-27 18:38:55 +0200 |
commit | 00e07e4b3a65d15a9e2ff34cfd0bbc43d96fd229 (patch) | |
tree | 7b25a285391b95abed0bac3b6b135fe992c1c6b8 /interpreter.py | |
parent | 4c52b01a13ae23d4a814c9c50252ba0a9caf3f10 (diff) | |
download | meson-00e07e4b3a65d15a9e2ff34cfd0bbc43d96fd229.zip meson-00e07e4b3a65d15a9e2ff34cfd0bbc43d96fd229.tar.gz meson-00e07e4b3a65d15a9e2ff34cfd0bbc43d96fd229.tar.bz2 |
More path normalisation.
Diffstat (limited to 'interpreter.py')
-rw-r--r-- | interpreter.py | 3 |
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]) |