Skip to content

Commit

Permalink
Updating path for Darwin
Browse files Browse the repository at this point in the history
taken from a stackoverflow question, hopefully this works
  • Loading branch information
Vhou-Atroph committed Aug 7, 2024
1 parent 1f01685 commit d847423
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tt_damage_calculator/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ def get_asset_path(self):
"""Gets the asset path for the program."""

self.asset_path = str(pathlib.Path(__file__).parent.resolve())
if platform.system() == "Darwin":
self.asset_path = pathlib.Path(os.path.dirname(os.path.abspath(__file__)))

if getattr(sys, 'frozen', False):
self.asset_path = str(pathlib.Path("./").parent.resolve())

Expand Down

0 comments on commit d847423

Please sign in to comment.