diff options
-rw-r--r-- | scripts/link_pyqt.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/link_pyqt.py b/scripts/link_pyqt.py index c188660a6..cbfb7995c 100644 --- a/scripts/link_pyqt.py +++ b/scripts/link_pyqt.py @@ -107,8 +107,11 @@ def get_lib_path(executable, name, required=True): return data elif prefix == 'ImportError': if required: - raise Error("Could not import {} with {}: {}!".format( - name, executable, data)) + wrapper = os.environ["QUTE_QT_WRAPPER"] + raise Error( + f"Could not import {name} with {executable}: {data} " + f"(QUTE_QT_WRAPPER: {wrapper}" + ) return None else: raise ValueError("Unexpected output: {!r}".format(output)) |