Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def OpenProcessBlockingNoReturn(args):
- try:
- proc = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- proc.stdout.close()
- proc.stderr.close()
- proc.stdin.close()
- proc.wait()
- except Exception as e:
- print e
- print sys.exc_info()[0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement