Skip to content

Commit c707ef4

Browse files
committed
fix armips under MacOS
1 parent 49b3ff5 commit c707ef4

File tree

1 file changed

+6
-0
lines changed
  • skytemple_randomizer/frontend/gtk

1 file changed

+6
-0
lines changed

skytemple_randomizer/frontend/gtk/main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737

3838
ctypes.cdll.msvcrt._putenv(f"SSL_CERT_FILE={ca_bundle_path}")
3939
ctypes.cdll.msvcrt._putenv(f"REQUESTS_CA_BUNDLE={ca_bundle_path}")
40+
else:
41+
# Make sure armips can be found.
42+
base_path = os.path.abspath(os.path.join(data_dir(), ".."))
43+
os.environ["PATH"] = (
44+
f"{base_path}/skytemple_files/_resources:{os.environ['PATH']}"
45+
)
4046

4147
try:
4248
init_locale()

0 commit comments

Comments
 (0)