<s> import os , os . path <EOL> import compago <EOL> app = compago . Application ( ) <EOL> command = app . command <EOL> @ command <EOL> def list_files ( path , verbose = False ) : <EOL> if verbose : <EOL> for dirpath , dirnames , filenames in os . walk ( path ) : <EOL> print dirpath <EOL> for filename in filenames : <EOL> print '<STR_LIT>' % filename <EOL> else : <EOL> print '<STR_LIT:\n>' . join ( os . listdir ( path ) ) <EOL> @ command <EOL> def cleanup_pyc ( path , verbose = False ) : <EOL> if verbose : print '<STR_LIT>' <EOL> for dirpath , dirnames , filenames in os . walk ( path ) : <EOL> for filename in filenames : <EOL> if filename . endswith ( '<STR_LIT>' ) : <EOL> f = os . path . join ( dirpath , filename ) <EOL> if verbose : print '<STR_LIT>' % f <EOL> os . unlink ( f ) <EOL> if __name__ == '<STR_LIT:__main__>' : app . run ( ) </s>
