def get_modules_dir():
 kernel_version = os.uname()[2]
 return ('/lib/modules/%s/kernel' % kernel_version)

def get_modules_dir ( ) : kernel_version = os . uname ( ) [ 2 ] return ( '/lib/modules/%s/kernel' % kernel_version )
return the modules dir for the running kernel version .