Lines Matching refs:path
7 import sys, cpp, re, os.path, string, 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)
225 path = header
226 if self.prefix and path.startswith("asm/"):
227 path = "%s%s" % (self.prefix, path[4:])
228 return path
230 def pathToHeader(self,path): argument
231 if self.prefix and path.startswith(self.prefix):
232 path = "asm/%s" % path[len(self.prefix):]
233 return "%s" % path
243 path = self.pathFromHeader(h)
244 if not path in needed:
245 needed[path] = set()
246 workqueue.append(path)
250 path = workqueue[i]
252 fparser.parseFile(self.kernel_root + path,
255 path = self.pathFromHeader(used)
256 if not path in needed:
257 needed[path] = set()
258 workqueue.append(path)
260 needed[path].add(user)
321 def parseFile(self,path): argument
322 f = file(path, "r")