844 if res in ["Y", "y"]: |
844 if res in ["Y", "y"]: |
845 patchPyXML() |
845 patchPyXML() |
846 except ImportError: |
846 except ImportError: |
847 pass |
847 pass |
848 |
848 |
849 #check version of PyQt |
|
850 from PyQt4.QtCore import PYQT_VERSION_STR |
|
851 pyqtVersion = PYQT_VERSION_STR |
|
852 # always assume, that snapshots are new enough |
|
853 if pyqtVersion.find("snapshot-") == -1: |
|
854 while pyqtVersion.count('.') < 2: |
|
855 pyqtVersion += '.0' |
|
856 (maj, min, pat) = pyqtVersion.split('.') |
|
857 maj = int(maj) |
|
858 min = int(min) |
|
859 pat = int(pat) |
|
860 if min < 5: |
|
861 print() |
|
862 print("You have to patch PyQt QNetworkAccessManager.") |
|
863 print("See the patches directory for details.") |
|
864 |
|
865 print() |
849 print() |
866 exit() |
850 exit() |
867 |
851 |
868 |
852 |
869 if __name__ == "__main__": |
853 if __name__ == "__main__": |