def set_tex_input_directory(self, tex_input_directory, latex_walker_init_args=None, strict_input=True):
self.tex_input_directory = tex_input_directory<EOL>self.latex_walker_init_args = latex_walker_init_args if latex_walker_init_args else {}<EOL>self.strict_input = strict_input<EOL>if tex_input_directory:<EOL><INDENT>self.macro_dict['<STR_LIT:input>'] = MacroDef('<STR_LIT:input>', lambda n: self._callback_input(n))<EOL>self.macro_dict['<STR_LIT>'] = MacroDef('<STR_LIT>', lambda n: self._callback_input(n))<EOL><DEDENT>else:<EOL><INDENT>self.macro_dict['<STR_LIT:input>'] = MacroDef('<STR_LIT:input>', discard=True)<EOL>self.macro_dict['<STR_LIT>'] = MacroDef('<STR_LIT>', discard=True)<EOL><DEDENT>
Set where to look for input files when encountering the ``\\input`` or
``\\include`` macro.

Alternatively, you may also override :py:meth:`read_input_file()` to
implement a custom file lookup mechanism.

The argument `tex_input_directory` is the directory relative to which to
search for input files.

If `strict_input` is set to `True`, then we always check that the
referenced file lies within the subtree of `tex_input_directory`,
prohibiting for instance hacks with '..' in filenames or using symbolic
links to refer to files out of the directory tree.

The argument `latex_walker_init_args` allows you to specify the parse
flags passed to the constructor of
:py:class:`pylatexenc.latexwalker.LatexWalker` when parsing the input
file.