def expand_path(path):
  """Returns ``path`` as an absolute path with ~user and env var expansion applied.

  :API: public
  """
  return os.path.abspath(os.path.expandvars(os.path.expanduser(path)))
Returns ``path`` as an absolute path with ~user and env var expansion applied.

  :API: public