From: Guido van Rossum Date: Tue, 31 Mar 1992 19:02:55 +0000 (+0000) Subject: path -> posixpath X-Git-Tag: v0.9.8~409 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e58f98bfcf3dbaa73bc113ff9980c1d4afd83e23;p=thirdparty%2FPython%2Fcpython.git path -> posixpath --- diff --git a/Lib/commands.py b/Lib/commands.py index a6084a5a7b39..5e4a9cfa7e48 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.