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
This commit is contained in:
Dirk Mueller 2019-06-28 19:05:39 +02:00
parent ddb78a9928
commit 9dd5232ea5
1 changed files with 2 additions and 1 deletions

View File

@ -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])