def __init__(self, dir=None):
if not dir:
config = Config()
- self.basedir = config.path + os.sep + 'trusted_roots'
- else:
- self.basedir = dir
+ dir = config.config_path + os.sep + 'trusted_roots'
+ self.basedir = dir
+
# create the directory to hold the files
try:
- os.makedirs(self.basedir)\r
- # if the path already exists then pass\r
- except OSError, (errno, strerr):\r
- if errno == 17:\r
+ os.makedirs(self.basedir)
+ # if the path already exists then pass
+ except OSError, (errno, strerr):
+ if errno == 17:
pass
def add_gid(self, gid):