<s> """<STR_LIT>""" <EOL> import logging <EOL> import os <EOL> from zipfile import ZipFile <EOL> import mdepub <EOL> from mdepub import shell <EOL> from mdepub . filename import getFN <EOL> log = logging . getLogger ( '<STR_LIT>' ) <EOL> def run ( ) : <EOL> """<STR_LIT>""" <EOL> options = mdepub . options <EOL> project_path = mdepub . project_path <EOL> log . debug ( "<STR_LIT>" ) <EOL> mdepub . require_opts_file ( ) <EOL> os . chdir ( project_path ) <EOL> skip = [ <EOL> "<STR_LIT>" + getFN ( "<STR_LIT:html>" ) , <EOL> "<STR_LIT>" + getFN ( "<STR_LIT>" ) , <EOL> "<STR_LIT>" + getFN ( "<STR_LIT>" ) <EOL> ] <EOL> with ZipFile ( getFN ( "<STR_LIT>" ) , '<STR_LIT:w>' ) as zip : <EOL> for root , dirs , files in os . walk ( "<STR_LIT:.>" ) : <EOL> for file in files : <EOL> fpath = os . path . join ( root , file ) <EOL> if fpath not in skip : <EOL> zip . write ( fpath ) </s>
