diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-02-05 20:04:00 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-02-05 20:04:00 +0000 |
commit | a9b69ff076080e31271d32751580c35107f0a451 (patch) | |
tree | d12d662104436b5ff0254a39c43a17776dc58d0b /tools | |
parent | 868a530aa65de371ffae6e0afb271ff96fe1201f (diff) | |
parent | 0662a1fde33684fb7cf1bb572b27270a34b38810 (diff) | |
download | oslo-a9b69ff076080e31271d32751580c35107f0a451.tar.gz oslo-a9b69ff076080e31271d32751580c35107f0a451.tar.xz oslo-a9b69ff076080e31271d32751580c35107f0a451.zip |
Merge "Allow tools/install_venv_common.py to be run from within the source directory."
Diffstat (limited to 'tools')
-rw-r--r-- | tools/install_venv_common.py | 7 |
1 files changed, 7 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 |