From 5d2dfa9f40f29ce7ddd23f8aff574c131539ed6c Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 15 Feb 2017 18:26:18 -0800 Subject: [PATCH] Handle version string sent to stderr An unfortunate side effect of switching from print to output() is that all output() goes to stderr. We should probably carefully consider whether this is the right thing to do. --- util/versioncheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/versioncheck.py b/util/versioncheck.py index 6bbec09..c418bf9 100755 --- a/util/versioncheck.py +++ b/util/versioncheck.py @@ -4,7 +4,7 @@ from subprocess import check_output as co from sys import exit # Actually run bin/mn rather than importing via python path -version = 'Mininet ' + co( 'PYTHONPATH=. bin/mn --version', shell=True ) +version = 'Mininet ' + co( 'PYTHONPATH=. bin/mn --version 2>&1', shell=True ) version = version.strip() # Find all Mininet path references