def running_config():
 version = os.uname()[2]
 for config in ('/proc/config.gz', ('/boot/config-%s' % version), ('/lib/modules/%s/build/.config' % version)):
  if os.path.isfile(config):
   return config
 return None

def running_config ( ) : version = os . uname ( ) [ 2 ] for config in ( '/proc/config.gz' , ( '/boot/config-%s' % version ) , ( '/lib/modules/%s/build/.config' % version ) ) : if os . path . isfile ( config ) : return config return None
return path of config file of the currently running kernel .