def main(): args = ert_parser(None, sys.argv[1:]) if args.verbose: logger = logging.getLogger() logger.setLevel("DEBUG") with ErtPluginContext(): args.func(args) clear_global_state()
def main(): import ert_logging # Only use ert logger config when running ERT args = ert_parser(None, sys.argv[1:]) if args.verbose: logger = logging.getLogger() logger.setLevel("DEBUG") FeatureToggling.update_from_args(args) with ErtPluginContext(): args.func(args) clear_global_state()
def main(): import ert_logging # Only use ert logger config when running ERT import locale locale.setlocale(locale.LC_NUMERIC, "C") args = ert_parser(None, sys.argv[1:]) if args.verbose: logger = logging.getLogger() logger.setLevel("DEBUG") FeatureToggling.update_from_args(args) initialize_databases() with start_ert_server(), ErtPluginContext(): args.func(args) clear_global_state()
def _clear_and_exit(args): clear_global_state() sys.exit(args)