def sourcehook(self, newfile):
if newfile[<NUM_LIT:0>] == '<STR_LIT:">':<EOL><INDENT>newfile = newfile[<NUM_LIT:1>:-<NUM_LIT:1>]<EOL><DEDENT>if isinstance(self.infile, basestring) and not os.path.isabs(newfile):<EOL><INDENT>newfile = os.path.join(os.path.dirname(self.infile), newfile)<EOL><DEDENT>return (newfile, open(newfile, "<STR_LIT:r>"))<EOL>
Hook called on a filename to be sourced.