Determine Paths at Runtime

Uses GRAMPS_RESOURCES to override the root location of the Gramps data files (which would normally be $(prefix)/share).
In setup.py install, writes $(prefix)/share to gen/utils/resource-path, installs that file, then deletes it again from the source tree. The presence or absence determines whether Gramps is running from the source directory or from an installation.

Const.py is now a static file; const.py.in is no longer used. Note that because importing const into setup tried to initialize things that we don't want initialized, VERSION is removed, and imported from gramps.version -- a file which will be added in the next change. Consequently, this commit will not run.

svn: r21613
This commit is contained in:
John Ralls
2013-03-11 22:43:58 +00:00
parent 56e29c162b
commit fa0eb6cebe
6 changed files with 132 additions and 76 deletions

1
.gitignore vendored
View File

@@ -8,6 +8,5 @@ dist/
# Gramps
data/tips.xml
gramps/gen/const.py
gramps/plugins/lib/holidays.xml
po/.intltool-merge-cache