]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Remove hard-coded paths from DB setup script
authorZane Bitter <zbitter@redhat.com>
Tue, 17 Apr 2012 15:38:48 +0000 (17:38 +0200)
committerZane Bitter <zbitter@redhat.com>
Tue, 17 Apr 2012 15:38:48 +0000 (17:38 +0200)
commitc2ab4a39d136949db5d2e6c6c2b90930929fe087
tree9d547f390beec999c4a9d2d25abb7f91a76b7784
parentd4fda0273580fc8575298614bc90569a73c1d5b3
Remove hard-coded paths from DB setup script

Since versions of heat can and will change, we do not want want them
hard-coded in the DB setup script. Instead, use the Python import logic to
determine the location of the module.

This will use the local copy of heat (which is usually what you want) if
run from the top level of the repository. Otherwise it will use the
installed version, as determined by Python.

Signed-off-by: Zane Bitter <zbitter@redhat.com>
bin/heat-db-setup-fedora
heat/db/sqlalchemy/manage.py [changed mode: 0644->0755]