From 7a97b9c7a779aa7739e743770559ca7146ba6df3 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Tue, 9 Apr 2024 01:54:49 +0300 Subject: use namespace package in imports --- src/sliceitoff/main.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/sliceitoff/main.py') diff --git a/src/sliceitoff/main.py b/src/sliceitoff/main.py index 58cc617..9a95b05 100644 --- a/src/sliceitoff/main.py +++ b/src/sliceitoff/main.py @@ -1,11 +1,10 @@ """ main.py """ -from runpy import run_path -from pathlib import Path +from sliceitoff.game import Game def main(): - """ Let's start the app as current path being base """ - my_path = Path(__file__).parent.resolve() - run_path(f"{my_path}", run_name="sliceitoff") + """ All the fun begins here """ + game = Game() + game.run() if __name__ == "__main__": main() -- cgit v1.2.3