From b675ca4f7f254dd24ee9091dcbdf74b2b9d7aa3b Mon Sep 17 00:00:00 2001 From: Josh Kearney Date: Thu, 31 Jan 2013 17:35:47 -0600 Subject: [PATCH] Sync latest openstack-common. This fixes an issue when trying to run install_venv from within the source directory. Change-Id: Id4dcb070319ec52d0a1b466e911fbfdf805db613 --- tools/install_venv_common.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/install_venv_common.py b/tools/install_venv_common.py index a92e4ab81..5cef25550 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