Skip to content

Commit

Permalink
Scope exit handling to windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dhinakg committed Sep 1, 2024
1 parent 79e7b1b commit 86f5085
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trollstore.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import platform
import sys
import traceback
from pathlib import Path
Expand All @@ -15,7 +16,7 @@


def exit(code=0):
if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"):
if platform.system() == "Windows" and getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"):
input("Press Enter to exit...")

sys.exit(code)
Expand Down

0 comments on commit 86f5085

Please sign in to comment.