Skip to content

Commit

Permalink
Fix resources on build
Browse files Browse the repository at this point in the history
  • Loading branch information
naghim committed Mar 9, 2024
1 parent 36c46ee commit 21fcb1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions subassistant/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
BASE_DIR = os.path.dirname(__file__)
RESOURCES_DIR = os.path.join(BASE_DIR, 'resources')

with open('baseres_dir.txt', 'w') as f:
f.write(BASE_DIR)
if not os.path.isdir(RESOURCES_DIR):
BASE_DIR = os.path.abspath(os.path.join(BASE_DIR, '..'))
RESOURCES_DIR = os.path.join(BASE_DIR, 'resources')

0 comments on commit 21fcb1e

Please sign in to comment.