(path)
| 30 | |
| 31 | |
| 32 | def OSPath(path): |
| 33 | import platform |
| 34 | |
| 35 | if type(path) == type('str'): |
| 36 | if platform.system() == 'Windows': |
| 37 | return path.replace('/', '\\') |
| 38 | else: |
| 39 | return path.replace('\\', '/') |
| 40 | else: |
| 41 | if platform.system() == 'Windows': |
| 42 | return [item.replace('/', '\\') for item in path] |
| 43 | else: |
| 44 | return [item.replace('\\', '/') for item in path] |
| 45 | |
| 46 | |
| 47 | # collect the build source code path and parent path |
no outgoing calls
no test coverage detected