Skip to content

Commit 444e9bc

Browse files
committed
restore (better) Vscode in /t
1 parent c3cb08b commit 444e9bc

3 files changed

Lines changed: 13 additions & 12 deletions

File tree

generate_a_winpython_distro.bat

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ echo ------------------
4646
echo 0.0 Initialize variables
4747
echo ------------------
4848

49-
if "%my_release_level%"=="" set my_release_level=b4
49+
if "%my_release_level%"=="" set my_release_level=b5
5050

5151
set my_basedir=%my_root_dir_for_builds%\bd%my_python_target%
5252

@@ -58,10 +58,6 @@ rem 2021-04-22 : path PyPy3 (as we don't try to copy PyPy3.exe to Python.exe)
5858
if "%target_python_exe%"=="" set target_python_exe=python.exe
5959

6060

61-
if %my_python_target%==37 (
62-
set my_python_target_release=3712
63-
set my_release=1
64-
)
6561
if %my_python_target%==38 (
6662
set my_python_target_release=3812
6763
set my_release=1
@@ -76,13 +72,11 @@ if %my_python_target%==310 (
7672
set my_release=2
7773
)
7874

79-
8075
if %my_python_target%==311 (
81-
set my_python_target_release=3114
82-
set my_release=1
76+
set my_python_target_release=3115
77+
set my_release=0
8378
)
8479

85-
8680
if %my_python_target%==312 (
8781
set my_python_target_release=3120
8882
set my_release=0

make.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,11 @@ def get_tool_path_dir(relpath):
353353
if pandocexe is not None:
354354
pandocver = utils.get_pandoc_version(str(Path(pandocexe).parent))
355355
installed_tools += [("Pandoc", pandocver)]
356-
356+
vscodeexe = get_tool_path_file(r"\t\VSCode\Code.exe")
357+
if vscodeexe is not None:
358+
installed_tools += [
359+
("VSCode", utils.getFileProperties(vscodeexe)["FileVersion"])
360+
]
357361
tools = []
358362
for name, ver in installed_tools:
359363
metadata = wppm.get_package_metadata("tools.ini", name)
@@ -1831,11 +1835,14 @@ def _create_batch_scripts(self):
18311835
rem launcher for VScode
18321836
call "%~dp0env_for_icons.bat" %*
18331837
rem cd/D "%WINPYWORKDIR1%"
1838+
if exist "%WINPYDIR%\..\t\vscode\code.exe" (
1839+
"%WINPYDIR%\..\t\vscode\code.exe" %*
1840+
) else (
18341841
if exist "%LOCALAPPDATA%\Programs\Microsoft VS Code\code.exe" (
18351842
"%LOCALAPPDATA%\Programs\Microsoft VS Code\code.exe" %*
18361843
) else (
18371844
"code.exe" %*
1838-
)
1845+
))
18391846
18401847
""",
18411848
)

winpython/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
OTHER DEALINGS IN THE SOFTWARE.
2929
"""
3030

31-
__version__ = '7.0.20230822'
31+
__version__ = '7.0.20230826'
3232
__license__ = __doc__
3333
__project_url__ = 'http://winpython.github.io/'

0 commit comments

Comments
 (0)