From 80dec6598b62832183381f08f20faf3343317cb2 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 5 Apr 2021 13:53:44 +0200 Subject: [PATCH] local_run.sh: do not require to provide the 'woob' executable name in arguments --- tools/local_run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/local_run.py b/tools/local_run.py index 7d61214980..51b610c7a1 100644 --- a/tools/local_run.py +++ b/tools/local_run.py @@ -7,15 +7,16 @@ import sys import tempfile +script = 'woob' + if len(sys.argv) < 2: - print("Usage: %s SCRIPTNAME [args]" % sys.argv[0]) + print("Usage: %s COMMAND [args]" % sys.argv[0]) sys.exit(1) else: args = sys.argv[1:] pyargs = [] while args and args[0].startswith('-'): pyargs.append(args.pop(0)) - script = args.pop(0) project = os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir)) -- GitLab