MCPcopy Create free account
hub / github.com/nodejs/node / CheckRelativeImport

Function CheckRelativeImport

deps/v8/tools/dev/update-compile-commands.py:26–30  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

24PYLIB_CHECK = os.path.join(PYLIB_PATH, 'clang', 'compile_db.py')
25GM_CHECK = os.path.join(GM_PATH, 'gm.py')
26def CheckRelativeImport(path):
27 if not os.path.exists(path):
28 print("Error: Please run this script from the root of a V8 checkout. "
29 f"{path} must be a valid relative path.")
30 sys.exit(1)
31CheckRelativeImport(PYLIB_CHECK)
32CheckRelativeImport(GM_CHECK)
33

Callers 1

Calls 3

printFunction · 0.50
existsMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected