def create_loader(self, item):
        # Hm, how to avoid needless recreation of this file?
        pathname = os.path.join(self.temp_dir, "%s.py" % item.__name__)
        if self.bundle_files > 2: # don't bundle pyds and dlls
            # all dlls are copied into the same directory, so modify
            # names to include the package name to avoid name
            # conflicts and tuck it away for future reference
            fname = item.__name__ + os.path.splitext(item.__file__)[1]
            item.__pydfile__ = fname
        else:
            fname = os.path.basename(item.__file__)
            
        # and what about dry_run?
        if self.verbose:
            print "creating python loader for extension '%s' (%s -> %s)" % (item.__name__,item.__file__,fname)

        source = LOADER % fname
        if not self.dry_run:
            open(pathname, "w").write(source)
        else:
            return None
        from modulefinder import Module
        return Module(item.__name__, pathname)
dataset/ETHPy150Open fogleman/FeedNotifier/patch/build_exe.py/py2exe.create_loader/original