MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / get_config_path

Function get_config_path

python/graphvite/cmd.py:35–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34
35def get_config_path():
36 candidate_paths = [
37 os.path.realpath(os.path.join(gv.package_path, "config")),
38 os.path.realpath(os.path.join(gv.package_path, "../../config"))
39 ]
40 for config_path in candidate_paths:
41 if os.path.isdir(config_path):
42 return config_path
43 raise IOError("Can't find configuration directory. Did you install GraphVite correctly?")
44
45
46def get_parser():

Callers 3

new_mainFunction · 0.85
baseline_mainFunction · 0.85
list_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected