Created
August 6, 2015 20:13
-
-
Save ikai/2af1215d9dd3fb281a48 to your computer and use it in GitHub Desktop.
Shows how to print the exact string subprocess is using from a list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd_args = ['cat', 'somefile.txt'] | |
print subprocess.list2cmdline(cmd_args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment