Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41f9503 commit e58f98bCopy full SHA for e58f98b
1 file changed
Lib/commands.py
@@ -1,6 +1,8 @@
1
# Module 'commands'
2
#
3
# Various tools for executing commands and looking at their output and status.
4
+#
5
+# NB This only works (and is only relevant) for UNIX.
6
7
8
# Get 'ls -l' status for an object into a string
@@ -33,8 +35,8 @@ def getstatusoutput(cmd):
33
35
# Make command argument from directory and pathname (prefix space, add quotes).
34
36
37
def mk2arg(head, x):
- import path
- return mkarg(path.join(head, x))
38
+ import posixpath
39
+ return mkarg(posixpath.join(head, x))
40
41
42
# Make a shell command argument from a string.
0 commit comments