From 26c3aa31d7943a23efb21a618c40b3134c7bfbdd Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 28 Aug 2013 23:08:21 +0000 Subject: [PATCH] Changes for webapp to work with gramps40 svn: r22923 --- gramps/webapp/settings.py | 4 +++- gramps/webapp/shell.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/webapp/settings.py b/gramps/webapp/settings.py index d3821aae3..55cee79d2 100644 --- a/gramps/webapp/settings.py +++ b/gramps/webapp/settings.py @@ -23,8 +23,10 @@ # Need to be able to import Gramps files from here. -from gramps.gen.const import DATA_DIR, WEB_DIR import os +os.environ['GRAMPS_RESOURCES'] = os.path.dirname(os.path.abspath("..")) + +from gramps.gen.const import DATA_DIR, WEB_DIR DEBUG = True TEMPLATE_DEBUG = DEBUG diff --git a/gramps/webapp/shell.py b/gramps/webapp/shell.py index b5f9f39e0..1d941dc33 100644 --- a/gramps/webapp/shell.py +++ b/gramps/webapp/shell.py @@ -26,6 +26,7 @@ #### >>> Person.objects.all() import os +os.environ['GRAMPS_RESOURCES'] = os.path.dirname(os.path.abspath("..")) pystartup = os.path.expanduser("~/.pystartup") if os.path.exists(pystartup): execfile(pystartup)