From 5fa585852d745f4350e7e31680e6b1d764e8d4c2 Mon Sep 17 00:00:00 2001 From: Dylan Jones Date: Sun, 6 Dec 2020 03:28:36 -0500 Subject: Prepare for pyinstaller bundling --- installer.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) mode change 100644 => 100755 installer.py (limited to 'installer.py') diff --git a/installer.py b/installer.py old mode 100644 new mode 100755 index 16e087f..deecd5b --- 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 -- cgit v1.2.3