diff --git a/pyinstaller-onedir.spec b/pyinstaller-onedir.spec index 0569b89..cfc0c1c 100755 --- a/pyinstaller-onedir.spec +++ b/pyinstaller-onedir.spec @@ -1,10 +1,13 @@ # -*- mode: python -*- +import os +workdir = os.getcwd() + block_cipher = None a = Analysis(['syncplayClient.py'], - pathex=['C:\\Users\\Alberto\\Documents\\syncplay-py3-qtpy-pyside2'], + pathex=[workdir], binaries=[], datas=[('resources/*', 'resources')], hiddenimports=['PySide2', 'PySide2.QtCore', 'PySide2.QtWidgets'], diff --git a/pyinstaller-onefile.spec b/pyinstaller-onefile.spec index 0d26e97..8e1f105 100755 --- a/pyinstaller-onefile.spec +++ b/pyinstaller-onefile.spec @@ -1,10 +1,13 @@ # -*- mode: python -*- +import os +workdir = os.getcwd() + block_cipher = None a = Analysis(['syncplayClient.py'], - pathex=['C:\\Users\\Alberto\\Documents\\syncplay-py3-qtpy-pyside2'], + pathex=[workdir], binaries=[], datas=[('resources/*', 'resources')], hiddenimports=['PySide2', 'PySide2.QtCore', 'PySide2.QtWidgets'],