summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-04-06 14:03:45 (GMT)
committerGuido van Rossum <guido@python.org>1992-04-06 14:03:45 (GMT)
commitb59cdd43562b6713fcf1227067ddde77a3868ac8 (patch)
tree0fa0912d2d814fad55ce7f470bd50b0eef84ffbe /Lib/os.py
parentaa1e140f033c2efdfbae103c15d25b1a820957b2 (diff)
downloadcpython-b59cdd43562b6713fcf1227067ddde77a3868ac8.zip
cpython-b59cdd43562b6713fcf1227067ddde77a3868ac8.tar.gz
cpython-b59cdd43562b6713fcf1227067ddde77a3868ac8.tar.bz2
Add separator
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 4212232..af0ce89 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -6,6 +6,7 @@
# - os.name is either 'posix' or 'mac'
# - os.curdir is a string representing the current directory ('.' or ':')
# - os.pardir is a string representing the parent directory ('..' or '::')
+# - os.sep is the (or a most common) pathname separator ('/' or ':')
# Programs that import and use 'os' stand a better chance of being
# portable between different platforms. Of course, they must then
@@ -20,6 +21,7 @@ try:
name = 'posix'
curdir = '.'
pardir = '..'
+ sep = '/'
import posixpath
path = posixpath
del posixpath
@@ -28,6 +30,7 @@ except ImportError:
name = 'mac'
curdir = ':'
pardir = '::'
+ sep = ':'
import macpath
path = macpath
del macpath