def compile(self, noTemporary=1): """Generate the script file and send it to iscc @param noTemporary: give the .iss file a real name and don't delete it """ if noTemporary: out = file("%s.iss" % self.name, 'w+') else: out = tempfile.NamedTemporaryFile(suffix='.iss', mode='w+') name = out.name self.writeScript(out) out.close() inno.build(name)
def test_simple(self): old_stdout = sys.stdout sys.stdout = StringIO() inno.build(util.sibpath(__file__, 'data/simple.iss')) sys.stdout = old_stdout