#NEWLINE# def split_path( path ) : #NEWLINE# #INDENT# colon_pos = get_first_pos_of_char ( ':' , path ) #NEWLINE# slash_pos = get_last_pos_of_char ( '/' , path ) #NEWLINE# ( project , path , name ) = ( path [ : colon_pos ] , path [ ( colon_pos + 1 ) : slash_pos ] , path [ ( slash_pos + 1 ) : ] ) #NEWLINE# if ( path == '' ) : #NEWLINE# #INDENT# path = '/' #NEWLINE# #UNINDENT# project = unescape_colon ( project ) #NEWLINE# path = unescape_colon ( path ) #NEWLINE# name = unescape_colon ( name ) . replace ( '\\/' , '/' ) #NEWLINE# return ( slash_pos , path , name )