portage.util.ExtractKernelVersion module¶
- portage.util.ExtractKernelVersion.ExtractKernelVersion(base_dir)¶
Try to figure out what kernel version we are running :param base_dir: Path to sources (usually /usr/src/linux) :type base_dir: string :rtype: tuple( version[string], error[string]) :return: 1. tuple( version[string], error[string]) Either version or error is populated (but never both)