def create_directories(self):
        bdist_base = self.get_finalized_command('bdist').bdist_base
        self.bdist_dir = os.path.join(bdist_base, 'winexe')

        collect_name = "collect-%d.%d" % sys.version_info[:2]
        self.collect_dir = os.path.abspath(os.path.join(self.bdist_dir, collect_name))
        self.mkpath(self.collect_dir)

        bundle_name = "bundle-%d.%d" % sys.version_info[:2]
        self.bundle_dir = os.path.abspath(os.path.join(self.bdist_dir, bundle_name))
        self.mkpath(self.bundle_dir)

        self.temp_dir = os.path.abspath(os.path.join(self.bdist_dir, "temp"))
        self.mkpath(self.temp_dir)

        self.dist_dir = os.path.abspath(self.dist_dir)
        self.mkpath(self.dist_dir)

        if self.distribution.zipfile is None:
            self.lib_dir = self.dist_dir
        else:
            self.lib_dir = os.path.join(self.dist_dir,
                                        os.path.dirname(self.distribution.zipfile))
        self.mkpath(self.lib_dir)
dataset/ETHPy150Open fogleman/FeedNotifier/patch/build_exe.py/py2exe.create_directories/original