mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
path -> posixpath
This commit is contained in:
parent
41f9503c11
commit
e58f98bfcf
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
||||||
# Module 'commands'
|
# Module 'commands'
|
||||||
#
|
#
|
||||||
# Various tools for executing commands and looking at their output and status.
|
# 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
|
# 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).
|
# Make command argument from directory and pathname (prefix space, add quotes).
|
||||||
#
|
#
|
||||||
def mk2arg(head, x):
|
def mk2arg(head, x):
|
||||||
import path
|
import posixpath
|
||||||
return mkarg(path.join(head, x))
|
return mkarg(posixpath.join(head, x))
|
||||||
|
|
||||||
|
|
||||||
# Make a shell command argument from a string.
|
# Make a shell command argument from a string.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue