| Guido van Rossum | 6da6aeb | 1992-03-30 12:39:06 +0000 | [diff] [blame] | 1 | # ospath.py is to {posix,mac}path.py what os.py is to modules {posix,mac} |
| 2 | |||||
| 3 | try: | ||||
| 4 | import posix | ||||
| 5 | name = 'posix' | ||||
| 6 | del posix | ||||
| 7 | except ImportError: | ||||
| 8 | import mac | ||||
| 9 | name = 'mac' | ||||
| 10 | del mac | ||||
| 11 | |||||
| 12 | if name == 'posix': | ||||
| 13 | from posixpath import * | ||||
| 14 | elif name == 'mac': | ||||
| 15 | from macpath import * | ||||