assist/__main__.py
def run():
    """Run assist from the command line. """
    mod = dict()
    rootpath = split(abspath(__file__))[0]

    mod_names = [name for name in iglob('%s/command/*.py' % rootpath)]
    for name in mod_names:
        tmp_name = split(name)[1][:-3]
        tmp_mod = import_mod('assist.command.%s' % tmp_name)
        if hasattr(tmp_mod, 'add_parser'):
            mod[tmp_name] = tmp_mod

    arg = parse_options(mod)
    mod[arg.parser_name].run(arg)
Run assist from the command line. 
Run assist from the command line.
Run assist from the command line .
def run():
    mod = dict()
    rootpath = split(abspath(__file__))[0]
    mod_names = [name for name in iglob('%s/command/*.py' % rootpath)]
    for name in mod_names:
        tmp_name = split(name)[1][:-3]
        tmp_mod = import_mod('assist.command.%s' % tmp_name)
        if hasattr(tmp_mod, 'add_parser'):
            mod[tmp_name] = tmp_mod
    arg = parse_options(mod)
    mod[arg.parser_name].run(arg)
def run ( ) : mod = dict ( ) rootpath = split ( abspath ( __file__ ) ) [ 0 ] mod_names = [ name for name in iglob ( '%s/command/*.py' % rootpath ) ] for name in mod_names : tmp_name = split ( name ) [ 1 ] [ : - 3 ] tmp_mod = import_mod ( 'assist.command.%s' % tmp_name ) if hasattr ( tmp_mod , 'add_parser' ) : mod [ tmp_name ] = tmp_mod arg = parse_options ( mod ) mod [ arg . parser_name ] . run ( arg )
Run assist from the command line.
Run assist from the command line .
"""Run assist from the command line. """