(ctx, check, env, editor)
Start an environment.
Start an environment.
Start an environment .
def edit(ctx, check, env, editor):
    """Start an environment."""
    if not file_exists(get_tox_file(check)):
        abort(f'`{check}` is not a testable check.')

    config_file = locate_config_file(check, env)
    try:
        click.edit(editor=editor, filename=config_file, extension='.yaml')
    except click.ClickException as e:
        echo_failure(f'Failed to open `{config_file}` in editor. Error: {e}')
def edit ( ctx , check , env , editor ) : if not file_exists ( get_tox_file ( check ) ) : abort ( f'`{check}` is not a testable check.' ) config_file = locate_config_file ( check , env ) try : click . edit ( editor = editor , filename = config_file , extension = '.yaml' ) except click . ClickException as e : echo_failure ( f'Failed to open `{config_file}` in editor. Error: {e}' )