Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd4a258

Browse files
author
stonebig
committed
adapt to spyder-3.1.3+
spyder.exe is now spyder3.exe
1 parent 8d74496 commit cd4a258

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

make.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -939,18 +939,30 @@ def _create_batch_scripts(self):
939939
self.create_batch_script('spyder.bat',r"""@echo off
940940
call "%~dp0env_for_icons.bat"
941941
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+
)
943947
""")
944948
self.create_batch_script('winspyder.bat',r"""@echo off
945949
call "%~dp0env_for_icons.bat"
946950
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+
)
948956
""")
949957

950958
self.create_batch_script('spyder_reset.bat',r"""@echo off
951959
call "%~dp0env_for_icons.bat"
952960
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+
)
954966
""")
955967

956968
self.create_batch_script('ipython_notebook.bat',r"""@echo off

0 commit comments

Comments
 (0)