#NEWLINE# def path_strip( path , root ) : #NEWLINE# #INDENT# if ( ( not path ) or ( not root ) ) : #NEWLINE# #INDENT# return path #NEWLINE# #UNINDENT# path = os . path . normcase ( path ) #NEWLINE# root = os . path . normcase ( root ) #NEWLINE# if path . startswith ( root ) : #NEWLINE# #INDENT# return path [ len ( root ) : ] #NEWLINE# #UNINDENT# return path