code: def get_expanded_path(self, path):
          
          if path.startswith('~'):
              return os.path.expanduser('~') + path[1:]
          else:
              return path
docs: expands a path that starts with an ~ to an absolute path
          :param path:
          :return: