code: def return_abs_path(directory, path):
      
      if directory is None or path is None:
          return
      directory = os.path.expanduser(directory)
      return os.path.abspath(os.path.join(directory, path))
docs: Unfortunately, Python is not smart enough to return an absolute
      path with tilde expansion, so I writing functionality to do this
  
      :param directory:
      :param path:
      :return: