MCPcopy Index your code
hub / github.com/nodejs/node / glob_to_var

Function glob_to_var

configure.py:2392–2409  ·  view source on GitHub ↗
(dir_base, dir_sub, patch_dir)

Source from the content-addressed store, hash-verified

2390do_not_edit = '# Do not edit. Generated by the configure script.\n'
2391
2392def glob_to_var(dir_base, dir_sub, patch_dir):
2393 file_list = []
2394 dir_all = f'{dir_base}/{dir_sub}'
2395 files = os.walk(dir_all)
2396 for ent in files:
2397 (_, _1, files) = ent
2398 for file in files:
2399 if file.endswith(('.cpp', '.c', '.h')):
2400 # srcfile uses "slash" as dir separator as its output is consumed by gyp
2401 srcfile = f'{dir_sub}/{file}'
2402 if patch_dir:
2403 patchfile = Path(dir_base, patch_dir, file)
2404 if patchfile.is_file():
2405 srcfile = f'{patch_dir}/{file}'
2406 info(f'Using floating patch "{patchfile}" from "{dir_base}"')
2407 file_list.append(srcfile)
2408 break
2409 return file_list
2410
2411def configure_intl(o):
2412 def icu_download(path):

Callers 1

configure_intlFunction · 0.85

Calls 3

walkMethod · 0.80
infoFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…