diff options
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 |