ya2 · news · projects · code · about

refactoring of functional tests
[pmachines.git] / lib / build / screenshots.py
1 from os import system
2 from glob import glob
3 from importlib import import_module
4 from inspect import isclass
5 from multiprocessing import Pool
6 from game.scene import Scene
7
8
9 def do_screenshot(cls):
10 system('python main.py --screenshot ' + cls.__name__)
11
12
13 def bld_screenshots(scene_classes):
14 with Pool() as p:
15 p.map(do_screenshot, scene_classes)