From c9be05627245d822521915407685a97a70f7cced Mon Sep 17 00:00:00 2001 From: peggy-48 <130591155+peggy-48@users.noreply.github.com> Date: Fri, 14 Apr 2023 12:24:44 +0200 Subject: [PATCH] Fix second bug --- testos.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/testos.py b/testos.py index 6d40117..76dbbcc 100644 --- a/testos.py +++ b/testos.py @@ -34,11 +34,17 @@ print("TESTOS Setup has been Completed!!!") time.sleep(1) if platform.system() == "Darwin": - os.system("open home.py") + try: + os.system("open -a Python home.py") + except: + if (y := input("Python interpret (d->default): ")) == "d": + pass + else: + os.system(y+ " home.py") elif platform.system() == "Windows": os.startfile('home.py') elif platform.system() == "Linux": - os.system("xdg-open home.py") + os.system("python3 home.py") else: print("Host OS unsupported.") exit()