diff options
author | Guido van Rossum <guido@python.org> | 1992-03-30 12:39:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-03-30 12:39:06 (GMT) |
commit | 6da6aebfdb680a5340deae59088f9e68525723b5 (patch) | |
tree | 6912b650b46efa76b792b5fe3c38cc1e4631cfed | |
parent | 715a65315287876f9bd2dd9ad5d453df3f6caa7c (diff) | |
download | cpython-6da6aebfdb680a5340deae59088f9e68525723b5.zip cpython-6da6aebfdb680a5340deae59088f9e68525723b5.tar.gz cpython-6da6aebfdb680a5340deae59088f9e68525723b5.tar.bz2 |
Initial revision
-rw-r--r-- | Lib/ospath.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Lib/ospath.py b/Lib/ospath.py new file mode 100644 index 0000000..866d02e --- /dev/null +++ b/Lib/ospath.py @@ -0,0 +1,15 @@ +# ospath.py is to {posix,mac}path.py what os.py is to modules {posix,mac} + +try: + import posix + name = 'posix' + del posix +except ImportError: + import mac + name = 'mac' + del mac + +if name == 'posix': + from posixpath import * +elif name == 'mac': + from macpath import * |