Skip to content

Commit b675ca4

Browse files
committed
Sync latest openstack-common.
This fixes an issue when trying to run install_venv from within the source directory. Change-Id: Id4dcb070319ec52d0a1b466e911fbfdf805db613
1 parent aa4f12a commit b675ca4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tools/install_venv_common.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
import subprocess
2626
import sys
2727

28+
29+
possible_topdir = os.getcwd()
30+
if os.path.exists(os.path.join(possible_topdir, "openstackclient",
31+
"__init__.py")):
32+
sys.path.insert(0, possible_topdir)
33+
34+
2835
from openstackclient.openstack.common import cfg
2936

3037

0 commit comments

Comments
 (0)