From d6e176f45589485786fe87ba7ef15fe7fd8302d1 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 16 Jan 2016 18:04:59 +0200 Subject: Made gtkdoc and run targets work. --- mesonbuild/scripts/commandrunner.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'mesonbuild/scripts/commandrunner.py') diff --git a/mesonbuild/scripts/commandrunner.py b/mesonbuild/scripts/commandrunner.py index f5a2fff..1c37f5c 100644 --- a/mesonbuild/scripts/commandrunner.py +++ b/mesonbuild/scripts/commandrunner.py @@ -43,14 +43,14 @@ def run_command(source_dir, build_dir, subdir, command, arguments): sys.exit(1) def run(args): - if len(sys.argv) < 4: + if len(args) < 4: print('commandrunner.py [arguments]') - sys.exit(1) - src_dir = sys.argv[1] - build_dir = sys.argv[2] - subdir = sys.argv[3] - command = sys.argv[4] - arguments = sys.argv[5:] + return 1 + src_dir = args[0] + build_dir = args[1] + subdir = args[2] + command = args[3] + arguments = args[4:] pc = run_command(src_dir, build_dir, subdir, command, arguments) pc.wait() return pc.returncode -- cgit v1.1