GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: add find pyenv path on windows · nodejs/node@a7fdc60

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools/msvs
    • find_python.cmd
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/msvs/find_python.cmd‎

Copy file name to clipboardExpand all lines: tools/msvs/find_python.cmd
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ for %%k in ( "HKCU\Software", "HKLM\SOFTWARE", "HKLM\Software\Wow6432Node") do (
1717
if not errorlevel 1 goto :found-python
1818
)
1919

20+
:: Check for pyenv-win installation using pyenv which python
21+
for /f "tokens=*" %%i in ('pyenv which python 2^>nul') do set p=%%i
22+
if defined p (
23+
for /f "tokens=*" %%j in ('"%p%" --version') do set python_version=%%j
24+
goto :found-python
25+
)
26+
2027
goto :no-python
2128

2229

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.