51 global options
52 parser = Flags()
53 options, args = parser.parse_args()
54 print(
"args: %s" % args)
55 if len(args) < 1
or 'help' in args[0]:
57 return 1
58
59 dirname = args[0]
60 print(
'Searching directory ' + dirname)
61
62 files = []
63 for root, dirs, fnames in os.walk(dirname):
64 for fname in fnames:
65 if fname.endswith('.html'):
66 files.append(
join(root, fname))
67
68 count = 4 * multiprocessing.cpu_count()
69 pool = multiprocessing.Pool(processes=count)
70
71 pool.map_async(convertImgs, files).
get(3600)
72
73
const myers::Point & get(const myers::Segment &)
static SkString join(const CommandLineFlags::StringArray &)