def create_batch_script(self, name, contents):
        scriptdir = osp.join(self.winpydir, 'scripts')
        if not osp.isdir(scriptdir):
            os.mkdir(scriptdir)
        fd = open(osp.join(scriptdir, name), 'w')
        fd.write(contents)
        fd.close()
Test if savefig works with off_screen_rendering and Engine
dataset/ETHPy150Open winpython/winpython/make.py/WinPythonDistribution.create_batch_script--crossover with--dataset/ETHPy150Open enthought/mayavi/integrationtests/mayavi/test_mlab_savefig.py/TestMlabSavefigUnitTest.test_many_savefig_offscreen