File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -939,18 +939,30 @@ def _create_batch_scripts(self):
939939 self .create_batch_script ('spyder.bat' ,r"""@echo off
940940call "%~dp0env_for_icons.bat"
941941cd/D "%WINPYWORKDIR%"
942- "%WINPYDIR%\scripts\spyder.exe" %*
942+ if exist "%WINPYDIR%\scripts\spyder3.exe" (
943+ "%WINPYDIR%\scripts\spyder3.exe" %*
944+ ) else (
945+ "%WINPYDIR%\scripts\spyder.exe" %*
946+ )
943947""" )
944948 self .create_batch_script ('winspyder.bat' ,r"""@echo off
945949call "%~dp0env_for_icons.bat"
946950cd/D "%WINPYWORKDIR%"
947- "%WINPYDIR%\scripts\spyder.exe" %*
951+ if exist "%WINPYDIR%\scripts\spyder3.exe" (
952+ "%WINPYDIR%\scripts\spyder3.exe" %*
953+ ) else (
954+ "%WINPYDIR%\scripts\spyder.exe" %*
955+ )
948956""" )
949957
950958 self .create_batch_script ('spyder_reset.bat' ,r"""@echo off
951959call "%~dp0env_for_icons.bat"
952960cd/D "%WINPYWORKDIR%"
953- "%WINPYDIR%\scripts\spyder.exe" --reset %*
961+ if exist "%WINPYDIR%\scripts\spyder3.exe" (
962+ "%WINPYDIR%\scripts\spyder3.exe" --reset %*
963+ ) else (
964+ "%WINPYDIR%\scripts\spyder.exe" --reset %*
965+ )
954966""" )
955967
956968 self .create_batch_script ('ipython_notebook.bat' ,r"""@echo off
You can’t perform that action at this time.
0 commit comments