Пример #1
0
def main():
    (opts, args) = setup_options()

    setup_logger(opts)

    load_modules()
    log.debug(args)
    
    output, module, params = do_command(args)
    module.close()
    log.info(output)
Пример #2
0
def main():
    (opts, args) = setup_options()

    setup_logger(opts)

    if not os.path.isdir(FEDORA_DIR):
        log.info("Creating %s" % FEDORA_DIR)
        os.makedirs(FEDORA_DIR)

    load_modules()
    shell()