From b5a33398e3728adb642a5ac941ca6ad3fab651c4 Mon Sep 17 00:00:00 2001 From: Menno Smits Date: Thu, 13 Jan 2011 14:40:02 +0000 Subject: [PATCH] Tidying up argv mangling --- livetest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/livetest.py b/livetest.py index 0ceb52e..1e373a4 100755 --- a/livetest.py +++ b/livetest.py @@ -442,11 +442,10 @@ def parse_argv(): args = sys.argv[1:] if not args: argv_error('Please specify a host configuration file. See livetest-sample.ini for an example.') - ini_path = sys.argv[1] + ini_path = sys.argv.pop(1) # 2nd arg should be the INI file if not os.path.isfile(ini_path): argv_error('%r is not a livetest INI file' % ini_path) host_config = parse_config_file(ini_path) - sys.argv = sys.argv[:1] + sys.argv[2:] return host_config def main(): -- 2.43.0