Skip to content

Commit 3ca3a84

Browse files
committed
Divert stderr to stdout when checking other versions.
1 parent 9e53dca commit 3ca3a84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pebble_tool/sdk/requirements.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _qemu_version(self):
5454
if 'qemu' not in self._version_cache:
5555
qemu_path = os.environ.get('PEBBLE_QEMU_PATH', 'qemu-pebble')
5656
try:
57-
result = subprocess.check_output([qemu_path, '--version'])
57+
result = subprocess.check_output([qemu_path, '--version'], stderr=subprocess.STDOUT)
5858
except (subprocess.CalledProcessError, OSError):
5959
version = None
6060
else:
@@ -70,7 +70,7 @@ def _pypkjs_version(self):
7070
if 'pypkjs' not in self._version_cache:
7171
pypkjs_path = os.environ.get('PHONESIM_PATH', 'phonesim.py')
7272
try:
73-
result = subprocess.check_output([sys.executable, pypkjs_path, '--version'])
73+
result = subprocess.check_output([sys.executable, pypkjs_path, '--version'], stderr=subprocess.STDOUT)
7474
except subprocess.CalledProcessError:
7575
version = '1.0.4' # The version before we started including version numbers.
7676
except OSError:

0 commit comments

Comments
 (0)