Skip to content
Snippets Groups Projects
Commit d360d4e5 authored by Ryan Hallisey's avatar Ryan Hallisey
Browse files

Change the search path to look locally

In order to use tools/build.py, we need to search
locally for imports.

Closes-bug: #1592030
Change-Id: Idfa651c1268f93366de9f4e3fa80c33be42c71c3
parent baae1b24
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import sys
PROJECT_ROOT = os.path.abspath(os.path.join(
os.path.dirname(os.path.realpath(__file__)), '../..'))
if PROJECT_ROOT not in sys.path:
sys.path.insert(0, PROJECT_ROOT)
from kolla.image import build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment