Skip to content

Commit 8e7781d

Browse files
authored
Merge pull request #60073 from nicogodet/add-warning-pyqt5to6
[pyqt5to6] Add warning if PyQt5 if found
2 parents 31b18d8 + 9515c1a commit 8e7781d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/pyqt5_to_pyqt6/pyqt5_to_pyqt6.py

+7
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@
5050
from collections.abc import Sequence
5151
from enum import Enum
5252

53+
try:
54+
import PyQt5
55+
56+
print("WARNING: PyQt5 has been found. It may result in wrong behavior.\n")
57+
except ImportError:
58+
pass
59+
5360
from PyQt6 import (
5461
Qsci,
5562
QtCore,

0 commit comments

Comments
 (0)