code: def splitparams (path):
      
      if '/' in path:
          i = path.find(';', path.rfind('/'))
      else:
          i = path.find(';')
      if i < 0:
          return path, ''
      return path[:i], path[i+1:]
docs: Split off parameter part from path.
      Returns tuple (path-without-param, param)