test
This commit is contained in:
parent
4bb824c595
commit
ec72095154
@ -12,11 +12,8 @@ class Config():
|
|||||||
def __init__(self, script_dir):
|
def __init__(self, script_dir):
|
||||||
self.script_dir = script_dir
|
self.script_dir = script_dir
|
||||||
|
|
||||||
# opts input
|
|
||||||
self.opts = self.get_opts()
|
|
||||||
|
|
||||||
# Load config
|
# Load config
|
||||||
self.config = get_configuration(self.opts)
|
self.config = get_configuration(self.get_opts())
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def basename(self):
|
def basename(self):
|
||||||
@ -41,10 +38,7 @@ class Config():
|
|||||||
''' will only get called for undefined attributes '''
|
''' will only get called for undefined attributes '''
|
||||||
"""We will try to find a core value, or return None"""
|
"""We will try to find a core value, or return None"""
|
||||||
|
|
||||||
if hasattr(self.config.core, name):
|
if hasattr(self.config, name):
|
||||||
return eval("self.config.core." + name)
|
|
||||||
|
|
||||||
elif hasattr(self.config, name):
|
|
||||||
return eval("self.config." + name)
|
return eval("self.config." + name)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user