]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
path -> posixpath
authorGuido van Rossum <guido@python.org>
Tue, 31 Mar 1992 19:02:55 +0000 (19:02 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 31 Mar 1992 19:02:55 +0000 (19:02 +0000)
Lib/commands.py

index a6084a5a7b3906f06d9b908b1b81ca9aaa2b1d5e..5e4a9cfa7e48de3c94d81ba29f0e781b65e9ae4b 100644 (file)
@@ -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.