aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
Diffstat (limited to 'interpreter.py')
-rw-r--r--interpreter.py4
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.')