(path, sep, add_end_sep=False)
| 651 | |
| 652 | |
| 653 | def _fix_path(path, sep, add_end_sep=False): |
| 654 | if path.startswith("."): |
| 655 | # We need the full path if this relative because all other comparisons |
| 656 | # check if the path is substring of another |
| 657 | path = os.path.abspath(path) |
| 658 | |
| 659 | if add_end_sep: |
| 660 | if not path.endswith("/") and not path.endswith("\\"): |
| 661 | path += "/" |
| 662 | else: |
| 663 | if path.endswith("/") or path.endswith("\\"): |
| 664 | path = path[:-1] |
| 665 | |
| 666 | if sep != "/": |
| 667 | path = path.replace("/", sep) |
| 668 | return path |
| 669 | |
| 670 | |
| 671 | _last_client_server_paths_set = [] |
no outgoing calls
no test coverage detected