Show More
@@ -155,7 +155,12 b' def qtapi_version():' | |||||
155 | try: |
|
155 | try: | |
156 | import sip |
|
156 | import sip | |
157 | except ImportError: |
|
157 | except ImportError: | |
158 | return |
|
158 | # as of PyQt5 5.11, sip is no longer available as a top-level | |
|
159 | # module and needs to be imported from the PyQt5 namespace | |||
|
160 | try: | |||
|
161 | from PyQt5 import sip | |||
|
162 | except ImportError: | |||
|
163 | return | |||
159 | try: |
|
164 | try: | |
160 | return sip.getapi('QString') |
|
165 | return sip.getapi('QString') | |
161 | except ValueError: |
|
166 | except ValueError: |
General Comments 0
You need to be logged in to leave comments.
Login now