def plat_finalize(self, modules, py_files, extensions, dlls):
        # platform specific code for final adjustments to the file
        # lists
        if sys.platform == "win32":
            # pythoncom and pywintypes are imported via LoadLibrary calls,
            # help py2exe to include the dlls:
            if "pythoncom" in modules.keys():
                import pythoncom
                dlls.add(pythoncom.__file__)
            if "pywintypes" in modules.keys():
                import pywintypes
                dlls.add(pywintypes.__file__)
            self.copy_w9xpopen(modules, dlls)
        else:
            raise DistutilsError, "Platform %s not yet implemented" % sys.platform
dataset/ETHPy150Open fogleman/FeedNotifier/patch/build_exe.py/py2exe.plat_finalize/original