def Clean():
 cwd = os.path.dirname(os.path.abspath(__file__))
 for (root, _, files) in os.walk(cwd):
  for filename in files:
   full_filename = os.path.join(root, filename)
   if (full_filename.endswith('_pb2.py') or full_filename.endswith('_pb2.pyc')):
    os.unlink(full_filename)

def Clean ( ) : cwd = os . path . dirname ( os . path . abspath ( __file__ ) ) for ( root , _ , files ) in os . walk ( cwd ) : for filename in files : full_filename = os . path . join ( root , filename ) if ( full_filename . endswith ( '_pb2.py' ) or full_filename . endswith ( '_pb2.pyc' ) ) : os . unlink ( full_filename )
clean out compiled protos .