Normalize a path to use the native OS path separator.
(path)
| 40 | |
| 41 | |
| 42 | def to_os_native_path(path): |
| 43 | """ |
| 44 | Normalize a path to use the native OS path separator. |
| 45 | """ |
| 46 | OS_PATH_SEP = "\\" if on_windows else "/" |
| 47 | |
| 48 | return path.replace("/", OS_PATH_SEP).replace("\\", OS_PATH_SEP).rstrip(OS_PATH_SEP) |
| 49 | |
| 50 | |
| 51 | def get_test_loc( |
no test coverage detected