def splitunc(p):
 if (p[1:2] == ':'):
  return ('', p)
 firstTwo = p[0:2]
 if ((firstTwo == ('/' * 2)) or (firstTwo == ('\\' * 2))):
  normp = normcase(p)
  index = normp.find('/', 2)
  if (index == (-1)):
   return ('', p)
  index = normp.find('/', (index + 1))
  if (index == (-1)):
   index = len(p)
  return (p[:index], p[index:])
 return ('', p)

def splitunc ( p ) : if ( p [ 1 : 2 ] == ':' ) : return ( '' , p ) firstTwo = p [ 0 : 2 ] if ( ( firstTwo == ( '/' * 2 ) ) or ( firstTwo == ( '\\' * 2 ) ) ) : normp = normcase ( p ) index = normp . find ( '/' , 2 ) if ( index == ( - 1 ) ) : return ( '' , p ) index = normp . find ( '/' , ( index + 1 ) ) if ( index == ( - 1 ) ) : index = len ( p ) return ( p [ : index ] , p [ index : ] ) return ( '' , p )
split a pathname into unc mount point and relative path specifiers .