Lines Matching refs:newfile
78 def push_source(self, newstream, newfile=None): argument
83 self.infile = newfile
87 if newfile is not None:
115 (newfile, newstream) = spec
116 self.push_source(newstream, newfile)
279 def sourcehook(self, newfile): argument
281 if newfile[0] == '"':
282 newfile = newfile[1:-1]
284 if isinstance(self.infile, str) and not os.path.isabs(newfile):
285 newfile = os.path.join(os.path.dirname(self.infile), newfile)
286 return (newfile, open(newfile, "r"))