diff options
-rw-r--r-- | tools/install_venv_common.py | 7 | ||||
-rw-r--r-- | update.py | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tools/install_venv_common.py b/tools/install_venv_common.py index 155db3b..75e3302 100644 --- a/tools/install_venv_common.py +++ b/tools/install_venv_common.py @@ -25,6 +25,13 @@ import os import subprocess import sys + +possible_topdir = os.getcwd() +if os.path.exists(os.path.join(possible_topdir, "oslo", + "__init__.py")): + sys.path.insert(0, possible_topdir) + + from openstack.common import cfg @@ -150,6 +150,10 @@ def _copy_file(path, dest, base): '\"openstack\.common', '\"' + base + '.openstack.common') + _replace(dest, + 'possible_topdir, "oslo",$', + 'possible_topdir, "' + base + '",') + def _copy_pyfile(path, base, dest_dir): _copy_file(path, _dest_path(path, base, dest_dir), base) |