code: def showpath(path):
      
      if logger.verbose:
          return os.path.abspath(path)
      else:
          path = os.path.relpath(path)
          if path.startswith(os.curdir + os.sep):
              path = path[len(os.curdir + os.sep):]
          return path
docs: Format a path for displaying.