MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / convert_to_abs_path

Function convert_to_abs_path

scripts/microstructure_gen.py:58–61  ·  view source on GitHub ↗
(field_name)

Source from the content-addressed store, hash-verified

56 config = json.load(fin);
57
58 def convert_to_abs_path(field_name):
59 field = config[field_name];
60 if isinstance(field, str):
61 config[field_name] = str(find_file(field, config_dir));
62
63 if "wire_network" in config:
64 convert_to_abs_path("wire_network");

Callers 1

parse_config_fileFunction · 0.85

Calls 1

find_fileFunction · 0.90

Tested by

no test coverage detected