Skip to content

Commit

Permalink
Fix import for install_venv.py
Browse files Browse the repository at this point in the history
On systems that don't use devstack the nova directory
doesn't automatically get added to the python path. This
breaks tools/install_venv_common.py which imports from
nova.openstack.common. This fixes the issue by manually
adding the nova root directory to the python path before
tools/install_venv_common.py is imported.

Change-Id: I8a3df02a51c2c777d8f47cb8bc72d0644ae47095
  • Loading branch information
Matthew Treinish committed Feb 4, 2013
1 parent 47bbf12 commit 38c7fa2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/install_venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
import os
import sys

parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.sys.path.insert(0, parentdir)

import install_venv_common as install_venv


Expand Down

0 comments on commit 38c7fa2

Please sign in to comment.