[r21613]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: r21618
This commit is contained in:
John Ralls
2013-03-11 22:54:20 +00:00
parent 3490ebc684
commit 3a73837dc9
6 changed files with 134 additions and 77 deletions

View File

@@ -36,6 +36,7 @@ export PYTHONHOME="$bundle_res"
export GRAMPSDIR="$bundle_lib/python$PYVER/site-packages/gramps"
export GRAMPSI18N="$bundle_data"/locale
export GRAMPS_RESOURCES="$bundle_data"
export GRAMPSHOME="$HOME/Library/Application Support"
# Strip out the argument added by the OS.