]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
spawn_sol_log: use sys.executable to find bin/python 1003/head
authorDan Mick <dan.mick@redhat.com>
Tue, 20 Dec 2016 03:44:52 +0000 (19:44 -0800)
committerDan Mick <dan.mick@redhat.com>
Wed, 21 Dec 2016 18:25:47 +0000 (10:25 -0800)
commitea3249dbfad435b06bd27f7adcaf37b62411b81b
tree4a248aa22be8ebaf0d960bfb009e3be4c0b6e6c8
parentd4d7e73b6dcd054df1d67e3140b35fa7337c6f68
spawn_sol_log: use sys.executable to find bin/python

An activated virtualenv has PATH set to find Python with /usr/bin/env.
A binary run from virtualenv/bin doesn't set PATH.  Use sys.executable
to handle both invocation methods.

Fixes: http://tracker.ceph.com/issues/17986
Signed-off-by: Dan Mick <dan.mick@redhat.com>
teuthology/orchestra/console.py