| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 41f9503 commit e58f98b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,8 @@ | |||
| 1 | 1 | # Module 'commands' | |
| 2 | 2 | # | |
| 3 | 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. | ||
| 4 | 6 | ||
| 5 | 7 | ||
| 6 | 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 | # | |
| 35 | 37 | def mk2arg(head, x): | |
| 36 | - import path | ||
| 37 | - return mkarg(path.join(head, x)) | ||
| 38 | + import posixpath | ||
| 39 | + return mkarg(posixpath.join(head, x)) | ||
| 38 | 40 | ||
| 39 | 41 | ||
| 40 | 42 | # Make a shell command argument from a string. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments