From 4dd0bb3c5e8519598ae36f730f3a4c24414eb848 Mon Sep 17 00:00:00 2001 From: jonathan Date: Wed, 15 Oct 2025 19:50:38 +0000 Subject: [PATCH] Add install.py --- install.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 install.py diff --git a/install.py b/install.py new file mode 100644 index 0000000..8b2dd7c --- /dev/null +++ b/install.py @@ -0,0 +1,21 @@ +import os + +def check_os(): + """Checks the operating system and prints a message accordingly.""" + + os_type = os.uname().system.lower() # Get OS name, lowercase for consistency + + if os_type == "linux": + print("Running on Linux") + elif os_type == "darwin": + print("Running on macOS") + else: + print(f"Unsupported OS family: {os_type}") + return 1 # Indicate an error + + return 0 # Indicate success + + +if __name__ == "__main__": + exit_code = check_os() + sys.exit(exit_code)