summaryrefslogtreecommitdiffstats
path: root/update.py
diff options
context:
space:
mode:
authorJosh Kearney <josh@jk0.org>2013-01-31 17:09:23 -0600
committerJosh Kearney <josh@jk0.org>2013-02-05 10:35:48 -0600
commit0662a1fde33684fb7cf1bb572b27270a34b38810 (patch)
treede06f66a5010ce44de8123ad9ec4b44ae59b896a /update.py
parentea46d462fcfd7d393b71b14206a5e6d86bf1994b (diff)
downloadoslo-0662a1fde33684fb7cf1bb572b27270a34b38810.tar.gz
oslo-0662a1fde33684fb7cf1bb572b27270a34b38810.tar.xz
oslo-0662a1fde33684fb7cf1bb572b27270a34b38810.zip
Allow tools/install_venv_common.py to be run from within the
source directory. Not doing this raised exceptions when it tried importing modules that didn't exist in the path. Change-Id: I10e02cd9ce6beb8fdf822dd397688450ac6981a1
Diffstat (limited to 'update.py')
-rw-r--r--update.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/update.py b/update.py
index 44fcc85..9340005 100644
--- a/update.py
+++ b/update.py
@@ -150,6 +150,10 @@ def _copy_file(path, dest, base):
'\"openstack\.common',
'\"' + base + '.openstack.common')
+ _replace(dest,
+ 'possible_topdir, "oslo",$',
+ 'possible_topdir, "' + base + '",')
+
def _copy_pyfile(path, base, dest_dir):
_copy_file(path, _dest_path(path, base, dest_dir), base)