MCPcopy
hub / github.com/modelscope/ms-swift / find_all_config

Function find_all_config

scripts/benchmark/exp_utils.py:380–389  ·  view source on GitHub ↗
(dir_or_file: str)

Source from the content-addressed store, hash-verified

378
379
380def find_all_config(dir_or_file: str):
381 if os.path.isfile(dir_or_file):
382 return [dir_or_file]
383 else:
384 configs = []
385 for dirpath, dirnames, filenames in os.walk(dir_or_file):
386 for name in filenames:
387 if name.endswith('.json') and 'ipynb' not in dirpath:
388 configs.append(os.path.join(dirpath, name))
389 return configs

Callers 1

llm_expFunction · 0.90

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected