diff options
| author | Zoltan Szabatin <[email protected]> | 2025-02-25 15:46:11 -0800 |
|---|---|---|
| committer | Zoltan Szabatin <[email protected]> | 2025-02-25 15:46:11 -0800 |
| commit | 442b376c6688e2a564e6ddc549da192406fe09f4 (patch) | |
| tree | 50aa1710a9c44012ea3ff26fc5999d067859baeb /src/splitscreen_duo/__init__.py | |
| parent | chore: Create justfile for serial port tasks (diff) | |
| download | splitscreen-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__.py | 15 |
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 |