diff --git a/src/west/main.py b/src/west/main.py index 8bde012..0cccedf 100755 --- a/src/west/main.py +++ b/src/west/main.py @@ -219,7 +219,7 @@ def main(argv=None): except WestUpdated: # West has been automatically updated. Restart ourselves to run the # latest version, with the same arguments that we were given. - os.execv(sys.executable, [sys.executable] + sys.argv) + os.execv(sys.executable, [sys.executable] + argv) except KeyboardInterrupt: sys.exit(0) except CalledProcessError as cpe: