Merge pull request #126 from lepistone/fix-lsb-error-to-console

capture stderr as well as stdout when diagnosing
pull/129/head
Nicolas Bessi (nbessi) 2015-02-09 09:51:44 +01:00
commit d0f1e0e067
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ from openerp.tools.config import config
def _get_output(cmd): def _get_output(cmd):
bindir = config['root_path'] bindir = config['root_path']
p = subprocess.Popen(cmd, shell=True, cwd=bindir, stdout=subprocess.PIPE) p = subprocess.Popen(cmd, shell=True, cwd=bindir, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
return p.communicate()[0].rstrip() return p.communicate()[0].rstrip()