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

index 03d7146..742ab8b 100644 (file)
@@ -104,11 +104,10 @@ class Hierarchy():
     # @param basedir the base directory to store the hierarchy in
 
     def __init__(self, basedir = None):
-        config = Config()
         if not basedir:
-            basedir = config.GENI_BASE_DIR + os.sep + 'geni' + os.sep
-        self.basedir = os.path.join(basedir, "authorities")
-
+            config = Config()
+            basedir = config.basepath + os.sep + "authorities"
+        self.basedir = basedir
     ##
     # Given a hrn, return the filenames of the GID, private key, and dbinfo
     # files.