diff options
| author | Josh Kearney <josh@jk0.org> | 2013-01-31 17:35:47 -0600 |
|---|---|---|
| committer | Josh Kearney <josh@jk0.org> | 2013-01-31 17:35:47 -0600 |
| commit | b675ca4f7f254dd24ee9091dcbdf74b2b9d7aa3b (patch) | |
| tree | cf1f3f81f4ed63aa4e1e8ab4952d49858f465305 | |
| parent | aa4f12aec1d13d02df2ecc2710d85ebd90d6dfe7 (diff) | |
| download | python-openstackclient-b675ca4f7f254dd24ee9091dcbdf74b2b9d7aa3b.tar.gz | |
Sync latest openstack-common.
This fixes an issue when trying to run install_venv from within
the source directory.
Change-Id: Id4dcb070319ec52d0a1b466e911fbfdf805db613
| -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 a92e4ab8..5cef2555 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, "openstackclient", + "__init__.py")): + sys.path.insert(0, possible_topdir) + + from openstackclient.openstack.common import cfg |
