(path)
| 8 | return path |
| 9 | |
| 10 | def gen_relative_project_path(path): |
| 11 | |
| 12 | root = get_project_root() |
| 13 | |
| 14 | if root not in path: |
| 15 | raise ValueError('Path to convert should be within the project root.') |
| 16 | |
| 17 | path = path.replace(root, '.').replace('.\\', '') |
| 18 | return path |
| 19 | |
| 20 | def exists_in_project_path(path): |
| 21 | return os.path.exists(assemble_project_path(path)) |
nothing calls this directly
no test coverage detected