#NEWLINE# def strip_build_paths( path ) : #NEWLINE# #INDENT# 'Strips out build-*/ from the given path.\n\n  Args:\n    path: Path that may contain build-*/.\n\n  Returns:\n    The path with build-*/ removed.\n  ' #NEWLINE# strip_paths = [ ( 'build-out%s' % os . sep ) , ( 'build-gen%s' % os . sep ) , ( 'build-out%s' % os . altsep ) , ( 'build-gen%s' % os . altsep ) ] #NEWLINE# for strip_path in strip_paths : #NEWLINE# #INDENT# path = path . replace ( strip_path , '' ) #NEWLINE# #UNINDENT# return strip_path