@danhachuel/thunderbolt 0.4.74 → 0.4.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -44,10 +44,11 @@ class UpdateResult:
|
|
|
44
44
|
restart_required: bool = False
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
def restart_current_process(*, exec_fn: Callable[..., Any] = os.execv) -> None:
|
|
47
|
+
def restart_current_process(*, exec_fn: Callable[..., Any] = os.execv, exit_fn: Callable[[int], Any] = os._exit) -> None:
|
|
48
48
|
"""Ask the launcher to restart Streamlit, or re-exec standalone callers."""
|
|
49
49
|
if os.environ.get("THUNDERBOLT_LAUNCHER_RESTART") == "1":
|
|
50
|
-
|
|
50
|
+
exit_fn(LAUNCHER_RESTART_EXIT_CODE)
|
|
51
|
+
return
|
|
51
52
|
executable = sys.executable
|
|
52
53
|
exec_fn(executable, [executable, *sys.argv])
|
|
53
54
|
|
package/package.json
CHANGED