From 7c661741d906e0981bacc275e76963894aaa2997 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 7 Jan 2020 00:48:46 +0300 Subject: boost/build/ci: fix module import errors --- boost/build/ci/travis.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'boost/build/ci/travis.py') diff --git a/boost/build/ci/travis.py b/boost/build/ci/travis.py index 7f791e4..d5d00eb 100755 --- a/boost/build/ci/travis.py +++ b/boost/build/ci/travis.py @@ -14,8 +14,6 @@ import logging import os import sys -from build import BoostVersion, main as build_main - def _env(name): if name not in os.environ: @@ -65,10 +63,15 @@ def build_travis(argv=None): args = _parse_args(argv) _check_travis() + this_module_dir = os.path.dirname(os.path.abspath(__file__)) + parent_module_dir = os.path.dirname(this_module_dir) + sys.path.insert(1, parent_module_dir) + from build import BoostVersion, main as build_main + version = BoostVersion.from_string(_get_boost_version()) travis_argv = [ 'download', - '--build', _get_build_dir(), + '--unpack', _get_build_dir(), '--', str(version) ] build_main(travis_argv) -- cgit v1.2.3