diff --git a/axedit/__init__.py b/axedit/__init__.py index 524cdb7..3da717c 100644 --- a/axedit/__init__.py +++ b/axedit/__init__.py @@ -10,7 +10,7 @@ from axedit.funcs import safe_close_connections from axedit.logs import logger -FOLDER_PATH = shared.AXE_FOLDER_PATH.parent +FOLDER_PATH = shared.AXE_FOLDER_PATH LOG_FILE_PATH = FOLDER_PATH / "app.log" WARN_FILE_PATH = FOLDER_PATH / "warns.log" PROFILE_FILE_PATH = FOLDER_PATH / "main.prof" @@ -20,7 +20,7 @@ def detached_main() -> None: """This function invokes the actual editor in a separate process and exits the terminal!""" - main_path = FOLDER_PATH / "main.py" + main_path = FOLDER_PATH / "__main__.py" command = [sys.executable, str(main_path.absolute()), "--hidden-debug"] if "--profile" in sys.argv: diff --git a/axedit/shared.py b/axedit/shared.py index f5deae7..f459696 100644 --- a/axedit/shared.py +++ b/axedit/shared.py @@ -21,7 +21,7 @@ # Constants FONT_SIZE: int = 24 APP_NAME = "axe" -AXE_FOLDER_PATH = Path(inspect.getfile(inspect.currentframe())).parent +AXE_FOLDER_PATH = Path(__file__).parent ASSETS_FOLDER = AXE_FOLDER_PATH / "assets" FONT_PATH = ASSETS_FOLDER / "fonts/IntoneMonoNerdFontMono-Regular.ttf" FONT = pygame.font.Font(FONT_PATH, FONT_SIZE) diff --git a/setup.py b/setup.py index 24c5c88..c20e198 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ description=DESCRIPTION, long_description=LONG_DESCRIPTION, packages=find_packages(), - install_requires=["pygame-ce"], + install_requires=["pygame-ce", "tomlkit", ""], python_requires=">=3.11", keywords=["editor"], classifiers=[ @@ -30,5 +30,5 @@ # "axedit/assets/fonts/IntoneMonoNerdFontMono-Regular.ttf", # "axedit/assets/images/logo.png", # ], - data_files=[str(p) for p in Path("assets/").rglob("*") if not p.is_dir()], + data_files=[str(p) for p in Path("axedit/assets/").rglob("*") if not p.is_dir()], )