diff options
author | toofar <toofar@spalge.com> | 2023-07-16 16:02:18 +1200 |
---|---|---|
committer | toofar <toofar@spalge.com> | 2023-10-28 10:44:55 +1300 |
commit | ab7b07941108f474da31716a2964adf081c55049 (patch) | |
tree | 9d793983435a054ab640bd5960b10c45e9e61875 | |
parent | 1fa678db61f2619ed14adff737ba07a783680ed3 (diff) | |
download | qutebrowser-ab7b07941108f474da31716a2964adf081c55049.tar.gz qutebrowser-ab7b07941108f474da31716a2964adf081c55049.zip |
debug python imports
For windows I'm getting a "Module not found." error, which I suspect is
it not finding qutebrowser itself, but lets see.
ref: https://pyinstaller.org/en/stable/spec-files.html#giving-run-time-python-options
-rw-r--r-- | misc/qutebrowser.spec | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/misc/qutebrowser.spec b/misc/qutebrowser.spec index ecb9da68e..652f69bfb 100644 --- a/misc/qutebrowser.spec +++ b/misc/qutebrowser.spec @@ -100,6 +100,11 @@ else: DEBUG = os.environ.get('PYINSTALLER_DEBUG', '').lower() in ['1', 'true'] +if DEBUG: + options = options = [('v', None, 'OPTION')] +else: + options = [] + a = Analysis(['../qutebrowser/__main__.py'], @@ -117,6 +122,7 @@ pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) exe = EXE(pyz, a.scripts, + options, exclude_binaries=True, name='qutebrowser', icon=icon, |