Changeset 234 for branches/mbutscher/work/extensions/MimeTexCGIBridge.py
- Timestamp:
- 01/09/11 19:37:51 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/mbutscher/work/extensions/MimeTexCGIBridge.py
r231 r234 103 103 # Run MimeTeX process 104 104 popenObject = subprocess.Popen(cmdline, shell=True, 105 stdout=subprocess.PIPE) 105 stdout=subprocess.PIPE, stdin=subprocess.PIPE, 106 stderr=subprocess.PIPE) 107 106 108 childOut = popenObject.stdout 109 110 # See http://bytes.com/topic/python/answers/634409-subprocess-handle-invalid-error 111 # why this is necessary 112 popenObject.stdin.close() 113 popenObject.stderr.close() 107 114 108 115 # Read stdout of process entirely
