()
| 33 | |
| 34 | |
| 35 | def 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 | |
| 46 | def get_parser(): |
no outgoing calls
no test coverage detected