organize/main.py
def config_debug():
    """ prints the config with resolved aliases, checks rules syntax and checks
        whether the given folders exist """
    haserr = False
    # check config syntax
    try:
        puts(bold('Your configuration as seen by the parser:'))
        with indent(2):
            config = Config.from_file(config_path)
            if not config.config:
                print_error('Config file is empty')
        puts(config.yaml())
        rules = config.rules
        puts('Config file syntax seems fine!')
    except Config.Error as e:
        haserr = True
        print_error(e)
    else:
        # check whether all folders exists:
        allfolders = set(flatten([rule.folders for rule in rules]))
        for f in allfolders:
            if not fullpath(f).exists():
                haserr = True
                puts(colored.yellow('Warning: "%s" does not exist!' % f))

    if not haserr:
        puts(colored.green('No config problems found.', bold=True))
 prints the config with resolved aliases, checks rules syntax and checks
        whether the given folders exist 
prints the config with resolved aliases, checks rules syntax and checks
whether the given folders exist
prints the config with resolved aliases checks rules syntax and checks whether the given folders exist
def config_debug():
    haserr = False
    try:
        puts(bold('Your configuration as seen by the parser:'))
        with indent(2):
            config = Config.from_file(config_path)
            if not config.config:
                print_error('Config file is empty')
        puts(config.yaml())
        rules = config.rules
        puts('Config file syntax seems fine!')
    except Config.Error as e:
        haserr = True
        print_error(e)
    else:
        allfolders = set(flatten([rule.folders for rule in rules]))
        for f in allfolders:
            if not fullpath(f).exists():
                haserr = True
                puts(colored.yellow('Warning: "%s" does not exist!' % f))
    if not haserr:
        puts(colored.green('No config problems found.', bold=True))
def config_debug ( ) : haserr = False try : puts ( bold ( 'Your configuration as seen by the parser:' ) ) with indent ( 2 ) : config = Config . from_file ( config_path ) if not config . config : print_error ( 'Config file is empty' ) puts ( config . yaml ( ) ) rules = config . rules puts ( 'Config file syntax seems fine!' ) except Config . Error as e : haserr = True print_error ( e ) else : allfolders = set ( flatten ( [ rule . folders for rule in rules ] ) ) for f in allfolders : if not fullpath ( f ) . exists ( ) : haserr = True puts ( colored . yellow ( 'Warning: "%s" does not exist!' % f ) ) if not haserr : puts ( colored . green ( 'No config problems found.' , bold = True ) )
prints the config with resolved aliases, checks rules syntax and checks
whether the given folders exist
prints the config with resolved aliases checks rules syntax and checks whether the given folders exist
""" prints the config with resolved aliases, checks rules syntax and checks
        whether the given folders exist """ # check config syntax # check whether all folders exists: