Commit 1832c26d authored by Fabrice Allain's avatar Fabrice Allain
Browse files

fix: implement setting.get method used within pdbqual tool

parent ea0e556a
......@@ -33,6 +33,10 @@ class Setting(object):
else:
raise KeyError(item)
def get(self, key, default=None):
return self.config[key] if key in self.config else self.args[
key] if key in self.args else default
def __repr__(self):
return "Setting object\n config: %s\n args : %s" % (self.config,
self.args)
......@@ -146,6 +150,7 @@ class AriaEcSettings(Settings):
SECTIONS = ("main", "setup", "maplot", "bbconv", "contactdef",
"pdbqual", "pdbdist", "analysis", "tbl2xml", "pdbstat",
"iniconv")
# TODO: options in main section should be accessible from all sections ! DO
# not use this a other section as it is done actually
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment