From 9dd5232ea5ee36beda56946647fda9002fa0a608 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 28 Jun 2019 19:05:39 +0200 Subject: [PATCH] Launch driver list generation with the same python interpreter In package building process, there might be build environments becoming more popular without Python 2.x being installed, with other words /usr/bin/python does not exist. The existing script uses a shebang of "env python", which works fine inside a virtualenv but not outside. The easy solution is to just call the script with the same python interpreter we're being called with. Change-Id: Id91996545f7f75c1c62cea34e240b9655b8ff3af --- doc/ext/cinder_driverlist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/ext/cinder_driverlist.py b/doc/ext/cinder_driverlist.py index 5a7a6192650..9182f0ee9a0 100644 --- a/doc/ext/cinder_driverlist.py +++ b/doc/ext/cinder_driverlist.py @@ -16,9 +16,10 @@ from cinder import utils +import sys def setup(app): print('** Generating driver list...') - rv = utils.execute('./tools/generate_driver_list.py', ['docs']) + rv = utils.execute(sys.executable, './tools/generate_driver_list.py', ['docs']) print(rv[0])