diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-09-20 14:08:48 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-09-20 14:08:48 +0300 |
commit | 77c14525c39b9f1e020cd48827127d0a65deb59c (patch) | |
tree | adf11d03c5f00c371b6e6dff73025d586cfb0af0 /interpreter.py | |
parent | dbb72bfd1293eb7d6e0698f6205ed0cbff0cbf6f (diff) | |
download | meson-77c14525c39b9f1e020cd48827127d0a65deb59c.zip meson-77c14525c39b9f1e020cd48827127d0a65deb59c.tar.gz meson-77c14525c39b9f1e020cd48827127d0a65deb59c.tar.bz2 |
Autodetect runnable commands on unix (where chmod values might be wrong) and Windows (where files with weird suffixes are unrunnable.
Diffstat (limited to 'interpreter.py')
-rw-r--r-- | interpreter.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py index 2d89804..db16568 100644 --- a/interpreter.py +++ b/interpreter.py @@ -811,7 +811,9 @@ class Interpreter(): for i in cargs: if not isinstance(i, str): raise InterpreterException('Run_command arguments must be strings.') - args = [cmd] + cargs + if not isinstance(cmd, list): + cmd = [cmd] + args = cmd + cargs in_builddir = kwargs.get('in_builddir', False) if not isinstance(in_builddir, bool): raise InterpreterException('in_builddir must be boolean.') |