Merge "Allow tools/install_venv_common.py to be run from within the source directory."
This commit is contained in:
commit
002c3f68ab
|
@ -25,6 +25,12 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
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
|
from quantum.openstack.common import cfg
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue