mirror of
https://github.com/python/cpython.git
synced 2025-10-22 06:32:43 +00:00
Initial revision
This commit is contained in:
parent
715a653152
commit
6da6aebfdb
1 changed files with 15 additions and 0 deletions
15
Lib/ospath.py
Normal file
15
Lib/ospath.py
Normal file
|
@ -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 *
|
Loading…
Add table
Add a link
Reference in a new issue