From 53dcb17eaf27d81b19d9ca8cd975eec5b37d4bf8 Mon Sep 17 00:00:00 2001 From: Alberto Sottile Date: Fri, 27 Apr 2018 00:54:05 +0200 Subject: [PATCH] Remove specific path from pyinstaller script --- pyinstaller-onedir.spec | 5 ++++- pyinstaller-onefile.spec | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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'],