File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ def _create_batch_scripts_initial(self):
571571if %ERRORLEVEL% NEQ 0 set PATH=""" + path + r"""
572572
573573rem force default pyqt5 kit for Spyder if PyQt5 module is there
574- if exist "%WINPYDIR%\Lib\site-packages\PyQt5" set QT_API=pyqt5
574+ if exist "%WINPYDIR%\Lib\site-packages\PyQt5\__init__.py " set QT_API=pyqt5
575575
576576rem ******************
577577rem handle R if included
@@ -652,7 +652,7 @@ def _create_batch_scripts_initial(self):
652652 $env:PATH = """ + '"' + pathps + '"' + r""" }
653653
654654#rem force default pyqt5 kit for Spyder if PyQt5 module is there
655- if (Test-Path "$env:WINPYDIR\Lib\site-packages\PyQt5") { $env:QT_API = "pyqt5" }
655+ if (Test-Path "$env:WINPYDIR\Lib\site-packages\PyQt5\__init__.py ") { $env:QT_API = "pyqt5" }
656656
657657
658658
You can’t perform that action at this time.
0 commit comments