File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed
Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -952,6 +952,14 @@ def _create_launchers(self):
952952 args = r'Noshell.vbs winpyzo.bat' ,
953953 )
954954
955+ # VSCode launcher
956+ self .create_launcher (
957+ 'VS Code.exe' ,
958+ 'code.ico' ,
959+ command = 'wscript.exe' ,
960+ args = r'Noshell.vbs winvscode.bat' ,
961+ )
962+
955963 self ._print_done ()
956964
957965 def _create_batch_scripts_initial (self ):
@@ -1746,7 +1754,21 @@ def _create_batch_scripts(self):
17461754 stdout , stderr = p .communicate ()
17471755
17481756 self ._print_done ()
1757+
1758+ self .create_batch_script (
1759+ 'winvscode.bat' ,
1760+ r"""@echo off
1761+ rem launcher for VScode
1762+ call "%~dp0env_for_icons.bat"
1763+ cd/D "%WINPYWORKDIR%"
1764+ if exist "%WINPYDIR%\..\t\vscode\code.exe" (
1765+ "%WINPYDIR%\..\t\vscode\code.exe" %*
1766+ ) else (
1767+ "code.exe" %*
1768+ )
17491769
1770+ """ ,
1771+ )
17501772 def _run_complement_batch_scripts (
17511773 self , this_batch = "run_complement.bat"
17521774 ):
Original file line number Diff line number Diff line change 2828OTHER DEALINGS IN THE SOFTWARE.
2929"""
3030
31- __version__ = '2.0.20190519 '
31+ __version__ = '2.1.20190830 '
3232__license__ = __doc__
3333__project_url__ = 'http://winpython.github.io/'
You can’t perform that action at this time.
0 commit comments