Ensure we patch the same instance of argv

This commit is contained in:
Dave Pearson
2022-10-31 12:03:32 +00:00
parent 26f31cfbe6
commit c391681b3d

View File

@@ -45,7 +45,7 @@ def import_app(import_name: str) -> App:
except Exception as error: except Exception as error:
raise AppFail(str(error)) raise AppFail(str(error))
sys.argv = [path, *argv] sys.argv[:] = [path, *argv]
if name: if name:
# User has given a name, use that # User has given a name, use that