Skip to content

Commit

Permalink
erm some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
blankRiot96 committed Jul 1, 2024
1 parent 862065a commit 93f477d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions axedit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion axedit/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand All @@ -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()],
)

0 comments on commit 93f477d

Please sign in to comment.