def get_cl_kernel_src_path(self):
     defaultKernelPath = '/usr/src'
     priorityDir = path.join(defaultKernelPath,"linux")
     if not access(defaultKernelPath,R_OK):
         return ""
     kernel = cl_kernel()
     kernelDirs = filter(kernel._testKernelDirectory,
                         map(lambda x:path.join(defaultKernelPath,x),
                             os.listdir(defaultKernelPath)))
     if kernelDirs:
         if priorityDir in kernelDirs:
             return priorityDir
         else:
             return path.join(defaultKernelPath,kernelDirs[0])
     return ""
 def __init__(self):
     setpos = \
         filter(lambda x:x[1].get('longOption')=="set",
         enumerate(CMD_OPTIONS))[0][0]
     CMD_OPTIONS[setpos] = opt.variable_set[0]
     self.optobj = opt(package=__app__,
                       version=__version__,
                       description=DESCRIPTION,
                       option_list= CMD_OPTIONS + opt.variable_view +
                       opt.color_control,
                       check_values=self.checkOpts)
     self.logicObj = cl_kernel()
     self.optionsInitrdIncompatible = ["o","no_clean","m",
                                       "k", "e","c","ebuild",
                                       "symlink"]
     self.optionsSymlinkIncompatible = ["o","no_clean","m","mdadm","lvm",
                                        "e","dmraid","c","ebuild","initrd" ]