def cleanup_path(path):
 if path.startswith(u'./'):
  path = path[2:]
 if path.startswith(u'/'):
  path = path[1:]
 return path

def cleanup_path ( path ) : if path . startswith ( u'./' ) : path = path [ 2 : ] if path . startswith ( u'/' ) : path = path [ 1 : ] return path
removes leading .