From 71b804acbeec46fa4c44fec818aba4954b179aef Mon Sep 17 00:00:00 2001 From: toofar Date: Sun, 16 Jul 2023 16:02:18 +1200 Subject: 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 --- misc/qutebrowser.spec | 6 ++++++ 1 file changed, 6 insertions(+) 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, -- cgit v1.2.3-54-g00ecf