Lines Matching refs:os
7 import os
13 from os.path import exists, basename
14 from os.path import join as path_join
116 sysfs_mods = [m for m in os.listdir(sysfs_path)
117 if os.path.isdir(os.path.join(sysfs_path, m))]
127 filename = os.path.join("/lib/modules/", release, "modules.builtin")
128 if os.path.exists(filename):
131 loaded_modules += [os.path.splitext(os.path.basename(mod))[0] for mod in f]
178 for base, dirs, _ in os.walk("/sys/bus/pci/devices/%s/" % dev_id):
181 ",".join(os.listdir(os.path.join(base, "net")))
764 with open(os.devnull, 'w') as devnull: