Lines Matching refs:newfile
74 def push_source(self, newstream, newfile=None): argument
79 self.infile = newfile
83 if newfile is not None:
111 (newfile, newstream) = spec
112 self.push_source(newstream, newfile)
274 def sourcehook(self, newfile): argument
276 if newfile[0] == '"':
277 newfile = newfile[1:-1]
279 if isinstance(self.infile, str) and not os.path.isabs(newfile):
280 newfile = os.path.join(os.path.dirname(self.infile), newfile)
281 return (newfile, open(newfile, "r"))