Merge "Allow tools/install_venv_common.py to be run from within the source directory."

This commit is contained in:
Jenkins 2013-02-06 02:39:47 +00:00 committed by Gerrit Code Review
commit 002c3f68ab
1 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,12 @@ import os
import subprocess
import sys
possible_topdir = os.getcwd()
if os.path.exists(os.path.join(possible_topdir, "quantum",
"__init__.py")):
sys.path.insert(0, possible_topdir)
from quantum.openstack.common import cfg