summaryrefslogtreecommitdiffstats
path: root/Lib/commands.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-03-31 19:02:55 (GMT)
committerGuido van Rossum <guido@python.org>1992-03-31 19:02:55 (GMT)
commite58f98bfcf3dbaa73bc113ff9980c1d4afd83e23 (patch)
treece19e3127d9839d518fbacc4c7b018360da4e1e8 /Lib/commands.py
parent41f9503c1147416761053c11abc8c4f85bef1b3b (diff)
downloadcpython-e58f98bfcf3dbaa73bc113ff9980c1d4afd83e23.zip
cpython-e58f98bfcf3dbaa73bc113ff9980c1d4afd83e23.tar.gz
cpython-e58f98bfcf3dbaa73bc113ff9980c1d4afd83e23.tar.bz2
path -> posixpath
Diffstat (limited to 'Lib/commands.py')
-rw-r--r--Lib/commands.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/commands.py b/Lib/commands.py
index a6084a5..5e4a9cf 100644
--- a/Lib/commands.py
+++ b/Lib/commands.py
@@ -1,6 +1,8 @@
# Module 'commands'
#
# Various tools for executing commands and looking at their output and status.
+#
+# NB This only works (and is only relevant) for UNIX.
# Get 'ls -l' status for an object into a string
@@ -33,8 +35,8 @@ def getstatusoutput(cmd):
# Make command argument from directory and pathname (prefix space, add quotes).
#
def mk2arg(head, x):
- import path
- return mkarg(path.join(head, x))
+ import posixpath
+ return mkarg(posixpath.join(head, x))
# Make a shell command argument from a string.