Skip to content

Commit 7affc5e

Browse files
committed
fix: dynamic site package
1 parent ccf06fa commit 7affc5e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker/platerec_installer/platerec_installer.spec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# docker run -v "$$(pwd):/src/" danleyb2/pyinstaller-windows "pyinstaller platerec_installer.spec -F"
77

88
import sys
9+
import site
910

1011
block_cipher = None
1112

@@ -16,8 +17,8 @@ elif sys.platform == 'linux':
1617
site_packages = '/root/.pyenv/versions/3.7.5/lib/python3.7/site-packages/'
1718
pathex = ['/src']
1819
else: # MacOs on GH Actions
19-
site_packages = '/Users/runner/hostedtoolcache/Python/3.8.10/x64/lib/python3.8/site-packages/'
20-
pathex = [os.path.abspath(SPECPATH)]
20+
site_packages = site.getsitepackages()[0]
21+
pathex = [os.path.dirname(__file__)]
2122

2223
a = Analysis( # noqa
2324
['platerec_installer.py'],

0 commit comments

Comments
 (0)