Skip to content

Instantly share code, notes, and snippets.

@guim1111
Created December 18, 2019 17:01
Show Gist options
  • Save guim1111/dd377f5cfa59bf2ddf2cc33702f8dc76 to your computer and use it in GitHub Desktop.
Save guim1111/dd377f5cfa59bf2ddf2cc33702f8dc76 to your computer and use it in GitHub Desktop.
my tmp code to work after
import sys, subprocess
print(sys.argv[1])
proc = subprocess.Popen([sys.argv[1]], stdout=subprocess.PIPE, shell=True)
(out, err) = proc.communicate()
print(out.decode("utf-8"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment