--- a/src/eric7/SystemUtilities/PySideImporter.py Thu Apr 10 18:39:29 2025 +0200 +++ b/src/eric7/SystemUtilities/PySideImporter.py Sun Apr 13 14:46:18 2025 +0200 @@ -4,24 +4,21 @@ # """ -Module to check for the presence of PySide2/PySide6 by importing it. +Module to check for the presence of PySide by importing it. """ import importlib.util import sys if __name__ == "__main__": - pySideVariant = "2" + pySideVariant = "6" if len(sys.argv) == 2: pySideVariant = sys.argv[1].replace("--variant=", "") - if pySideVariant == "1": + if pySideVariant in ("1", "2"): # no PySide support anymore ret = 10 - elif pySideVariant == "2": - ret = 10 if importlib.util.find_spec("PySide") is None else 0 - elif pySideVariant == "6": ret = 10 if importlib.util.find_spec("PySide6") is None else 0