Skip to content

Instantly share code, notes, and snippets.

@ikai
Created August 6, 2015 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikai/2af1215d9dd3fb281a48 to your computer and use it in GitHub Desktop.
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
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