def get_cgroup_path(name, subsystem="cpuset"):
""" Returns the base path for the cgroup with a specific name or None."""
result = reduce(lambda a, b: b if os.path.basename(b) == name else a,
def get_cgroup_path(name, subsystem="cpuset"):
""" Returns the base path for the cgroup with a specific name or None."""
result = reduce(lambda a, b: b if os.path.basename(b) == name else a,