diff options
author | Dylan Jones <dylanjones2011@gmail.com> | 2020-12-06 03:28:36 -0500 |
---|---|---|
committer | Dylan Jones <dylanjones2011@gmail.com> | 2020-12-06 03:28:36 -0500 |
commit | 5fa585852d745f4350e7e31680e6b1d764e8d4c2 (patch) | |
tree | ac3e973bc7602dafb7b6cce1ab2e12a521f82328 /installer.py | |
parent | 5b25086399f6a08d087b43ed57a9f3068516d0a2 (diff) | |
download | modpackman-5fa585852d745f4350e7e31680e6b1d764e8d4c2.tar.gz modpackman-5fa585852d745f4350e7e31680e6b1d764e8d4c2.zip |
Prepare for pyinstaller bundling
Diffstat (limited to 'installer.py')
-rwxr-xr-x[-rw-r--r--] | installer.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/installer.py b/installer.py index 16e087f..deecd5b 100644..100755 --- a/installer.py +++ b/installer.py @@ -1,5 +1,10 @@ -import subprocess import os +import sys + +if hasattr(sys, '_MEIPASS'): # we're running in a bundle, go where we have our bundled assets + os.chdir(sys._MEIPASS) + +import subprocess import requests import tempfile import shutil |