#NEWLINE# def check_path( path , otherwise ) : #NEWLINE# #INDENT# '\n    Checks if a path exists. If it does, print a warning message; if not,\n    execute the `otherwise` callback argument.\n    ' #NEWLINE# if os . path . exists ( path ) : #NEWLINE# #INDENT# print ( ( "WARNING: Path '%s' already exists; skipping" % path ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# otherwise ( path )