From 730d0e324cae7699b5786a0ca43900ae007ed2aa Mon Sep 17 00:00:00 2001 From: Faerbit Date: Wed, 17 Nov 2021 21:03:33 +0100 Subject: [PATCH] Update update script to automatically apply import magic --- src/fime/icons/update-bundled-icons.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fime/icons/update-bundled-icons.sh b/src/fime/icons/update-bundled-icons.sh index cc9fe04..3988302 100755 --- a/src/fime/icons/update-bundled-icons.sh +++ b/src/fime/icons/update-bundled-icons.sh @@ -1,2 +1,3 @@ #!/bin/sh rcc resources.qrc -g python -o __init__.py +sed -i 's/^.*import QtCore.*$/try:\n from PySide6 import QtCore\nexcept ImportError:\n from PySide2 import QtCore/g' __init__.py