Exemple #1
0
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()
Exemple #2
0
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()
Exemple #3
0
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()
Exemple #4
0
def _clear_and_exit(args):
    clear_global_state()
    sys.exit(args)