#NEWLINE# def startswithpath( pathlist , pathstr ) : #NEWLINE# #INDENT# ' checks if at least one of the paths in a list of paths starts with a string ' #NEWLINE# for path in path : #NEWLINE# #INDENT# if os . path . join ( pathstr , '' ) . startswith ( path ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False