update config loader

This commit is contained in:
xuyige 2018-09-09 12:36:56 +08:00
parent 7c57bc6fc9
commit 7fb2bcc78c

View File

@ -9,7 +9,7 @@ class ConfigLoader(BaseLoader):
"""loader for configuration files"""
def __int__(self, data_name, data_path):
super(ConfigLoader, self).__init__(data_name, data_path)
super(ConfigLoader, self).__init__(data_path)
self.config = self.parse(super(ConfigLoader, self).load())
@staticmethod
@ -100,7 +100,7 @@ class ConfigSection(object):
if __name__ == "__main__":
config = ConfigLoader('configLoader', 'there is no data')
config = ConfigLoader('there is no data')
section = {'General': ConfigSection(), 'My': ConfigSection(), 'A': ConfigSection()}
"""