<s> import os <EOL> import shutil <EOL> from webpack . conf import settings <EOL> def write_file ( file_name , content ) : <EOL> with open ( file_name , '<STR_LIT:w>' ) as _file : <EOL> _file . write ( content ) <EOL> def read_file ( file_name ) : <EOL> with open ( file_name , '<STR_LIT:r>' ) as _file : <EOL> return _file . read ( ) <EOL> def clean_output_root ( ) : <EOL> if os . path . exists ( settings . OUTPUT_ROOT ) : <EOL> shutil . rmtree ( settings . OUTPUT_ROOT ) </s>
