From afb64f7472bc835d078bf18c0cef07ada3ee0982 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sat, 11 Feb 2012 18:08:54 -0400 Subject: [PATCH] Also ensure that the default gpg_home directory is really relative to the installation directory (SaintGermain) --- apps/django_gpg/conf/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/django_gpg/conf/settings.py b/apps/django_gpg/conf/settings.py index 03e5a8d622..e1eed62938 100644 --- a/apps/django_gpg/conf/settings.py +++ b/apps/django_gpg/conf/settings.py @@ -1,8 +1,10 @@ """ Configuration options for the django_gpg app """ +import os from django.utils.translation import ugettext_lazy as _ +from django.conf import settings from smart_settings.api import register_settings @@ -11,6 +13,6 @@ register_settings( module=u'django_gpg.conf.settings', settings=[ {'name': u'KEYSERVERS', 'global_name': u'SIGNATURES_KEYSERVERS', 'default': ['pool.sks-keyservers.net'], 'description': _(u'List of keyservers to be queried for unknown keys.')}, - {'name': u'GPG_HOME', 'global_name': u'SIGNATURES_GPG_HOME', 'default': 'gpg_home', 'description': _(u'Home directory used to store keys as well as configuration files.')}, + {'name': u'GPG_HOME', 'global_name': u'SIGNATURES_GPG_HOME', 'default': os.path.join(settings.PROJECT_ROOT, u'gpg_home'), 'description': _(u'Home directory used to store keys as well as configuration files.')}, ] )