Lines Matching refs:path
7 import sys, cpp, re, os.path, time
89 hdr_dir = os.path.realpath(os.path.dirname(from_file))
90 hdr_dir = hdr_dir.replace("%s/" % os.path.realpath(kernel_root),
106 def parseFile(self, path, arch=None, kernel_root=None): argument
108 if not os.path.exists(path):
115 f = open(path, "rt")
117 print("!!! can't read '%s'" % path)
128 if verboseSearch: print("::: " + path)
131 if verboseSearch: print("*** " + path)
133 list = cpp.BlockParser().parseFile(path)
144 self.checkInclude(inc, path, kernel_root)
224 path = header
225 if self.prefix and path.startswith("asm/"):
226 path = "%s%s" % (self.prefix, path[4:])
227 return path
229 def pathToHeader(self,path): argument
230 if self.prefix and path.startswith(self.prefix):
231 path = "asm/%s" % path[len(self.prefix):]
232 return "%s" % path
242 path = self.pathFromHeader(h)
243 if not path in needed:
244 needed[path] = set()
245 workqueue.append(path)
249 path = workqueue[i]
251 fparser.parseFile(self.kernel_root + path,
254 path = self.pathFromHeader(used)
255 if not path in needed:
256 needed[path] = set()
257 workqueue.append(path)
259 needed[path].add(user)
320 def parseFile(self,path): argument
321 f = file(path, "r")