Autodetect installer path location.

pull/11820/head
Jussi Pakkanen 1 year ago committed by Eli Schwartz
parent 0c45838b2f
commit 1205172fd4
  1. 6
      packaging/createpkg.py

@ -16,6 +16,7 @@
import subprocess
import shutil, sys, os
from glob import glob
import xml.etree.ElementTree as ET
@ -41,7 +42,10 @@ class PkgGenerator:
if os.path.exists(self.pkg_dir):
shutil.rmtree(self.pkg_dir)
os.mkdir(self.pkg_dir)
pyinstaller_bin = '/Users/jpakkane/Library/Python/3.8/bin/pyinstaller'
pyinstaller_bin = glob('/Users/jpakkane/Library/Python/*/bin/pyinstaller')
if len(pyinstaller_bin) != 1:
sys.exit('Could not determine unique installer.')
pyinstaller_bin = pyinstaller_bin[0]
pyinst_cmd = [pyinstaller_bin,
'--clean',
'--additional-hooks-dir=packaging',

Loading…
Cancel
Save