| Index: abp_rewrite.py | 
| =================================================================== | 
| --- a/abp_rewrite.py | 
| +++ b/abp_rewrite.py | 
| @@ -15,18 +15,16 @@ def doRewrite(files, args): | 
| } | 
|  | 
| baseDir = os.path.dirname(utils.__file__) | 
| command = [ | 
| application, os.path.join(baseDir, 'jshydra.js'), | 
| os.path.join(baseDir, 'scripts', 'abprewrite.js'), | 
| '--arg', ' '.join(args) | 
| ] + files | 
| -  result, dummy = subprocess.Popen(command, stdout=subprocess.PIPE, env=env).communicate() | 
| -  result = result.replace('\r', '') | 
| -  return result | 
| +  return subprocess.check_output(command, env=env).replace('\r', '') | 
|  | 
| if __name__ == '__main__': | 
| try: | 
| scriptArgsStart = sys.argv.index('--arg') | 
| except ValueError: | 
| scriptArgsStart = len(sys.argv) | 
| print doRewrite(sys.argv[1:scriptArgsStart], sys.argv[scriptArgsStart + 1:]) | 
|  |