mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Ensure we patch the same instance of argv
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user