<s> import os <EOL> import glob <EOL> import lib2to3 <EOL> from py2exe . build_exe import py2exe as build_exe <EOL> class MediaCollector ( build_exe ) : <EOL> """<STR_LIT>""" <EOL> def copy_extensions ( self , extensions ) : <EOL> build_exe . copy_extensions ( self , extensions ) <EOL> data_path = os . path . join ( lib2to3 . __path__ [ <NUM_LIT:0> ] , '<STR_LIT>' ) <EOL> media = os . path . join ( '<STR_LIT>' ) <EOL> full = os . path . join ( self . collect_dir , media ) <EOL> self . mkpath ( full ) <EOL> for f in glob . glob ( data_path ) : <EOL> name = os . path . basename ( f ) <EOL> self . copy_file ( f , os . path . join ( full , name ) ) <EOL> self . compiled_files . append ( os . path . join ( media , name ) ) </s>
