Commit | Line | Data |
---|---|---|
63e7aeb2 | 1 | from os import system |
a747111f | 2 | from multiprocessing import Pool |
a747111f FC |
3 | |
4 | ||
5 | def do_screenshot(cls): | |
6 | system('python main.py --screenshot ' + cls.__name__) | |
63e7aeb2 FC |
7 | |
8 | ||
288c0ffb | 9 | def build_screenshots(scene_classes): |
a747111f FC |
10 | with Pool() as p: |
11 | p.map(do_screenshot, scene_classes) |