From 6da6aebfdb680a5340deae59088f9e68525723b5 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 30 Mar 1992 12:39:06 +0000 Subject: [PATCH] Initial revision --- Lib/ospath.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Lib/ospath.py diff --git a/Lib/ospath.py b/Lib/ospath.py new file mode 100644 index 00000000000..866d02e77a2 --- /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 *