def action_view(argc, argv): args = parse_args(argv) prj = Project(args.path) err = prj.load() if err is not None: log.error("error while loading project: %s", err) quit() prj.view(args.img_only)
def action_view(args): prj = Project(args.project_path) err = prj.load() if err is not None: log.error("error while loading project: %s", err) quit() prj.view()
def action_view(argc, argv): if argc < 1: usage() prj = Project(argv[0]) err = prj.load() if err is not None: log.error("error while loading project: %s", err) quit() prj.view()