Skip to content

Instantly share code, notes, and snippets.

@ikai
Created August 6, 2015 20:13
Show Gist options
  • 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