Exemple #1
0
 def initialize_in_dirs(appconfig_dirpath, logconfig_dirpath):
     OsExpert.ensure_abs_dirpath_exists(appconfig_dirpath)
     OsExpert.ensure_abs_dirpath_exists(logconfig_dirpath)
     App.initialize(appconfig_filepath=os.path.join(appconfig_dirpath,
                                                    'config.ini'),
                    logconfig_filepath=os.path.join(logconfig_dirpath,
                                                    'logconfig.json'))
Exemple #2
0
	def __init__(self):
		super().__init__(__file__)
		Log.d('construct')
		retry_delay_seconds = int(AppConfig.setting('DATAFETCH_API_RETRY_DELAY_SECONDS'))
		data_response_dirpath = AppConfig.setting('DATA_RESPONSE_DIRPATH')
		Log.d('data response dirpath is: {}', data_response_dirpath)
		self.retry_delay_seconds = retry_delay_seconds
		self.data_response_dirpath = data_response_dirpath
		OsExpert.ensure_abs_dirpath_exists(data_response_dirpath)
		self.subscribers = subscribe.all()