File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -939,18 +939,30 @@ def _create_batch_scripts(self):
939
939
self .create_batch_script ('spyder.bat' ,r"""@echo off
940
940
call "%~dp0env_for_icons.bat"
941
941
cd/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
+ )
943
947
""" )
944
948
self .create_batch_script ('winspyder.bat' ,r"""@echo off
945
949
call "%~dp0env_for_icons.bat"
946
950
cd/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
+ )
948
956
""" )
949
957
950
958
self .create_batch_script ('spyder_reset.bat' ,r"""@echo off
951
959
call "%~dp0env_for_icons.bat"
952
960
cd/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
+ )
954
966
""" )
955
967
956
968
self .create_batch_script ('ipython_notebook.bat' ,r"""@echo off
You can’t perform that action at this time.
0 commit comments