diff --git a/contrib/PC/MagicMemoryCreator/main.py b/contrib/PC/MagicMemoryCreator/main.py index 29d9c13e..62990187 100755 --- a/contrib/PC/MagicMemoryCreator/main.py +++ b/contrib/PC/MagicMemoryCreator/main.py @@ -69,8 +69,9 @@ def disable_go_check(): def refresh(): m.destroy() - os.execv(sys.argv[0], sys.argv) - + p = sys.executable + os.execl(p, p, *sys.argv) + def cleanup() -> None: global go if go: