Skip to content

Commit 1ca68d7

Browse files
authored
Merge pull request #453 from stonebig/master
better check PyQt5
2 parents 8a73398 + 2aee7dd commit 1ca68d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

make.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def _create_batch_scripts_initial(self):
571571
if %ERRORLEVEL% NEQ 0 set PATH=""" + path + r"""
572572
573573
rem 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
576576
rem ******************
577577
rem 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

0 commit comments

Comments
 (0)