#!/usr/bin/env python import os import sys __path__ = [os.path.join(sys.exec_prefix, "Tools", "i18n")] import msgfmt del __path__ msgfmt.make('test1.po', 'test1.mo') msgfmt.make('test2.po', 'test2.mo') if len(msgfmt.MESSAGES) != 1: print "Multiple calls to msgfmt.make() corrupted output file"