diff options
author | Michael Elkins <melkins@tislabs.com> | 2013-03-26 23:49:57 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2013-03-26 23:49:57 +0000 |
commit | 58bb4e6e21827b930e490bc0e107fb44b22e63df (patch) | |
tree | 0740902af9a1392471cc22a1b736b0bccf65a26c /rpkid | |
parent | 7112ed6d4ee0dbe2cd3cf3ec365f37958999934b (diff) |
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
Diffstat (limited to 'rpkid')
-rw-r--r-- | rpkid/rpki/gui/script_util.py | 6 |
1 files changed, 4 insertions, 2 deletions
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( |