'Wrapper for `apt_pkg` module for running with Python 2.5'

@staticmethod
def _apt_cfg_dir(dirspec):

    try:
        result = apt_pkg.config.find_dir(dirspec)
    except AttributeError:
        result = apt_pkg.Config.FindDir(dirspec)
    return result
