From 58bb4e6e21827b930e490bc0e107fb44b22e63df Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Tue, 26 Mar 2013 23:49:57 +0000 Subject: set rpki.config.default_dirname from rpki.gui.autoconf.sysconfdir to the need to any calling scripts to do the same thing svn path=/trunk/; revision=5236 --- rpkid/rpki/gui/script_util.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rpkid') diff --git a/rpkid/rpki/gui/script_util.py b/rpkid/rpki/gui/script_util.py index b98bad88..bb0fb427 100644 --- a/rpkid/rpki/gui/script_util.py +++ b/rpkid/rpki/gui/script_util.py @@ -18,7 +18,8 @@ This module contains utility functions for use in standalone scripts. from django.conf import settings -from rpki.config import parser +from rpki import config +from rpki.gui import autoconf __version__ = '$Id$' @@ -27,7 +28,8 @@ def setup(): """ Configure Django enough to use the ORM. """ - cfg = parser(section='web_portal') + config.default_dirname = autoconf.sysconfdir + cfg = config.parser(section='web_portal') # INSTALLED_APPS doesn't seem necessary so long as you are only accessing # existing tables. settings.configure( -- cgit v1.2.3