Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e58f98b

Browse files
committed
path -> posixpath
1 parent 41f9503 commit e58f98b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/commands.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Module 'commands'
22
#
33
# Various tools for executing commands and looking at their output and status.
4+
#
5+
# NB This only works (and is only relevant) for UNIX.
46

57

68
# Get 'ls -l' status for an object into a string
@@ -33,8 +35,8 @@ def getstatusoutput(cmd):
3335
# Make command argument from directory and pathname (prefix space, add quotes).
3436
#
3537
def mk2arg(head, x):
36-
import path
37-
return mkarg(path.join(head, x))
38+
import posixpath
39+
return mkarg(posixpath.join(head, x))
3840

3941

4042
# Make a shell command argument from a string.

0 commit comments

Comments
 (0)