def __init__(self, directoryPath):
self._data = {}<EOL>configFiles = os.listdir(directoryPath)<EOL>configFilesPendingLoading = []<EOL>if "<STR_LIT>" in configFiles:<EOL><INDENT>configFilesPendingLoading.append(<EOL>os.path.join(directoryPath, "<STR_LIT>")<EOL>)<EOL><DEDENT>for configFile in configFiles:<EOL><INDENT>if configFile.endswith("<STR_LIT>"):<EOL><INDENT>configFilesPendingLoading.append(<EOL>os.path.join(directoryPath, configFile)<EOL>)<EOL><DEDENT><DEDENT>if "<STR_LIT>" in configFiles:<EOL><INDENT>configFilesPendingLoading.append(<EOL>os.path.join(directoryPath, "<STR_LIT>")<EOL>)<EOL><DEDENT>for configFile in configFiles:<EOL><INDENT>if configFile.endswith("<STR_LIT>"):<EOL><INDENT>configFilesPendingLoading.append(<EOL>os.path.join(directoryPath, configFile)<EOL>)<EOL><DEDENT><DEDENT>for configFile in configFiles:<EOL><INDENT>if configFile.endswith("<STR_LIT>"):<EOL><INDENT>configFilesPendingLoading.append(<EOL>os.path.join(directoryPath, configFile)<EOL>)<EOL><DEDENT><DEDENT>for configFilePath in configFilesPendingLoading:<EOL><INDENT>configFile = open(configFilePath, "<STR_LIT:r>")<EOL>Config.mergeDictionaries(json.load(configFile), self._data)<EOL><DEDENT>
Load all configuration files at a given path.

:param directoryPath: <str> path to load