fix trusted_roots path
authorTony Mack <tmack@cs.princeton.edu>
Wed, 20 May 2009 19:17:20 +0000 (19:17 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 20 May 2009 19:17:20 +0000 (19:17 +0000)
geni/util/trustedroot.py

index c757907..67ad129 100644 (file)
@@ -7,9 +7,9 @@ class TrustedRootList():
     def __init__(self, dir=None):
         if not dir:
             config = Config()
-            self.basedir = config.path + os.sep + 'trusted_roots'
-        else:
-            self.basedir = dir
+            dir = config.basepath + os.sep + 'trusted_roots'
+        self.basedir = dir
+        
         # create the directory to hold the files
         try:
             os.makedirs(self.basedir)\r