forked from LagoLunatic/wwrando
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpaths.py
More file actions
18 lines (16 loc) · 662 Bytes
/
paths.py
File metadata and controls
18 lines (16 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os
try:
from sys import _MEIPASS
RANDO_ROOT_PATH = _MEIPASS
ASSETS_PATH = os.path.join(_MEIPASS, "assets")
DATA_PATH = os.path.join(_MEIPASS, "data")
LOGIC_PATH = os.path.join(_MEIPASS, "logic")
ASM_PATH = os.path.join(_MEIPASS, "asm")
SEEDGEN_PATH = os.path.join(_MEIPASS, "seedgen")
except ImportError:
RANDO_ROOT_PATH = os.path.dirname(os.path.realpath(__file__))
ASSETS_PATH = os.path.join(RANDO_ROOT_PATH, "assets")
DATA_PATH = os.path.join(RANDO_ROOT_PATH, "data")
LOGIC_PATH = os.path.join(RANDO_ROOT_PATH, "logic")
ASM_PATH = os.path.join(RANDO_ROOT_PATH, "asm")
SEEDGEN_PATH = os.path.join(RANDO_ROOT_PATH, "seedgen")