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:
parent
ddb78a9928
commit
9dd5232ea5
@ -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])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user