- try:
- p = subprocess.Popen(
- 'python main.py interpret {}'.format(
- os.path.join('examples', filename),
- ),
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE,
- )
-
- actual_stdout, actual_stderr = p.communicate()
+ p = subprocess.Popen(
+ (
+ 'python',
+ 'main.py',
+ 'interpret',
+ os.path.join('examples', filename),
+ ),
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ )