mirror of
https://github.com/python/cpython.git
synced 2024-11-28 08:20:55 +01:00
16 lines
265 B
Python
16 lines
265 B
Python
# 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 *
|