From f82f41e8c14d665eef6dedc94dfef84054970e9d Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 19 May 2009 17:18:34 +0000 Subject: [PATCH] modify how we define trusted root basedir --- geni/util/trustedroot.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/geni/util/trustedroot.py b/geni/util/trustedroot.py index e957655d..c7579078 100644 --- a/geni/util/trustedroot.py +++ b/geni/util/trustedroot.py @@ -1,11 +1,15 @@ import os from gid import * +from geni.util.config import Config class TrustedRootList(): - def __init__(self, dir="./trusted_roots"): - self.basedir = dir - + def __init__(self, dir=None): + if not dir: + config = Config() + self.basedir = config.path + os.sep + 'trusted_roots' + else: + self.basedir = dir # create the directory to hold the files try: os.makedirs(self.basedir) -- 2.45.2