def remove_compiled_application(folder):
 try:
  shutil.rmtree(pjoin(folder, 'compiled'))
  path = pjoin(folder, 'controllers')
  for file in listdir(path, '.*\\.pyc$', drop=False):
   os.unlink(file)
 except OSError:
  pass

def remove_compiled_application ( folder ) : try : shutil . rmtree ( pjoin ( folder , 'compiled' ) ) path = pjoin ( folder , 'controllers' ) for file in listdir ( path , '.*\\.pyc$' , drop = False ) : os . unlink ( file ) except OSError : pass
deletes the folder compiled containing the compiled application .