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 — test: more robust check for location of `node.exe` · nodejs/node@49ee30b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools
    • test.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/test.py‎

Copy file name to clipboardExpand all lines: tools/test.py
+6-8Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -890,14 +890,12 @@ def GetVm(self, arch, mode):
890890
# http://code.google.com/p/gyp/issues/detail?id=40
891891
# It will put the builds into Release/node.exe or Debug/node.exe
892892
if utils.IsWindows():
893-
out_dir = os.path.join(dirname(__file__), "..", "out")
894-
if not exists(out_dir):
895-
if mode == 'debug':
896-
name = os.path.abspath('Debug/node.exe')
897-
else:
898-
name = os.path.abspath('Release/node.exe')
899-
else:
900-
name = os.path.abspath(name + '.exe')
893+
if not exists(name + '.exe'):
894+
name = name.replace('out/', '')
895+
name = os.path.abspath(name + '.exe')
896+
897+
if not exists(name):
898+
raise ValueError('Could not find executable. Should be ' + name)
901899

902900
return name
903901

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.