// On Windows, find this library; other platforms already provide the
// full path.
if is_win:
imp = getfullnameof(imp)
// Strip off the extension and ``lib`` prefix (Linux/Mac) to give the raw
// name. Lowercase (since Windows always normalized names to lowercase).
lib_name = os.path.splitext(os.path.basename(imp))[0].lower()
After Change
if is_win:
imp = getfullnameof(imp,
// First, look for Qt binaries in the local Qt install.
pyqt5_library_info.location["BinariesPath"] if is_PyQt5 else
pyside2_library_info.location["BinariesPath"]
)