def init_pyramid(config_file_path): # if config_file_path == None: # config_file_path = os.getcwd() + '/prod.ini' # else: config_file_path = os.getcwd() + '/' + config_file_path settings = paste.deploy.appconfig('config:%s' % config_file_path, relative_to='.') logging.config.fileConfig(config_file_path) return command_line_main(settings)
def init_app(self, settings): return command_line_main(settings)