Update update script to automatically apply import magic

This commit is contained in:
Fabian 2021-11-17 21:03:33 +01:00
parent d806cbe6f3
commit 730d0e324c

View File

@ -1,2 +1,3 @@
#!/bin/sh #!/bin/sh
rcc resources.qrc -g python -o __init__.py 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