9dd5232ea5
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
26 lines
825 B
Python
26 lines
825 B
Python
# Copyright 2016 Dell Inc.
|
|
# All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
|
|
from cinder import utils
|
|
|
|
import sys
|
|
|
|
def setup(app):
|
|
print('** Generating driver list...')
|
|
rv = utils.execute(sys.executable, './tools/generate_driver_list.py', ['docs'])
|
|
print(rv[0])
|
|
|