Sync latest openstack-common.

This fixes an issue when trying to run install_venv from within
the source directory.

Change-Id: Id4dcb070319ec52d0a1b466e911fbfdf805db613
This commit is contained in:
Josh Kearney 2013-01-31 17:35:47 -06:00
parent aa4f12aec1
commit b675ca4f7f
1 changed files with 7 additions and 0 deletions

View File

@ -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