def display_path(path):
 path = os.path.normcase(os.path.abspath(path))
 if path.startswith((os.getcwd() + os.path.sep)):
  path = ('.' + path[len(os.getcwd()):])
 return path

def display_path ( path ) : path = os . path . normcase ( os . path . abspath ( path ) ) if path . startswith ( ( os . getcwd ( ) + os . path . sep ) ) : path = ( '.' + path [ len ( os . getcwd ( ) ) : ] ) return path
gives the display value for a given path .