@classmethod
    def load_config(cls,verbose=True):
        parser = argparse.ArgumentParser()
        parser.add_argument('-c','--config')
        args = parser.parse_args()

        if not args.config:
            print('Missing -c[config file]')
            exit()

        file = args.config.replace('.py','')
        pathfile = 'configs/{}.py'.format(file)
        if not os.path.isfile(pathfile):
            exit('Config file "{}" does not exist'.format(pathfile))

        config_file = "configs.{}".format(file)

        if not config_file:
            exit('Please supply a config file. Example: python run.py my_config (without .py)\n')

        if verbose:
            print('Loading config: {}'.format(file))

        try:
            current_config = __import__(config_file,fromlist="Config")
        except __HOLE__:
            print('Unable to load config.')
            raise

        cls.configIntegrityCheck(current_config.Config)
        cls.configRequiredCheck(current_config.Config)

        Factory.set('Config',current_config.Config)
        if verbose:
            print('Config loaded')
dataset/ETHPy150Open f4ble/pyarc/configs/config_base.py/ConfigBase.load_config