diff options
author | toofar <toofar@spalge.com> | 2023-07-16 16:02:18 +1200 |
---|---|---|
committer | toofar <toofar@spalge.com> | 2023-10-28 08:47:34 +1300 |
commit | 71b804acbeec46fa4c44fec818aba4954b179aef (patch) | |
tree | 6ddd6e809e9207d2240fecd45a370a3f171ee1b4 | |
parent | f9a31ca955c24066535d6e94340d03a8cae66085 (diff) | |
download | qutebrowser-71b804acbeec46fa4c44fec818aba4954b179aef.tar.gz qutebrowser-71b804acbeec46fa4c44fec818aba4954b179aef.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, |