aboutsummaryrefslogtreecommitdiff
path: root/src/splitscreen_duo/__init__.py
diff options
context:
space:
mode:
authorZoltan Szabatin <[email protected]>2025-02-25 15:46:11 -0800
committerZoltan Szabatin <[email protected]>2025-02-25 15:46:11 -0800
commit442b376c6688e2a564e6ddc549da192406fe09f4 (patch)
tree50aa1710a9c44012ea3ff26fc5999d067859baeb /src/splitscreen_duo/__init__.py
parentchore: Create justfile for serial port tasks (diff)
downloadsplitscreen-duo-442b376c6688e2a564e6ddc549da192406fe09f4.tar.xz
splitscreen-duo-442b376c6688e2a564e6ddc549da192406fe09f4.zip
feat: Add Pygame menu
Diffstat (limited to 'src/splitscreen_duo/__init__.py')
-rw-r--r--src/splitscreen_duo/__init__.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/splitscreen_duo/__init__.py b/src/splitscreen_duo/__init__.py
index eea3683..4be2b6f 100644
--- a/src/splitscreen_duo/__init__.py
+++ b/src/splitscreen_duo/__init__.py
@@ -1,4 +1,19 @@
+from . import menu
+import os
+import logging
+
+
+logger = logging.getLogger(__name__)
+
+
def main() -> int:
+ logging.basicConfig(
+ level=(
+ logging.DEBUG if os.environ.get("DEVELOPMENT", "").lower() else logging.INFO
+ )
+ )
print("The Dual Screen Console")
+ logger.info(f"Running as {os.environ.get("INSTANCE", "unknown")}")
+ menu.main_loop()
return 0