diff --git a/Support/lib/Python/tex.py b/Support/lib/Python/tex.py index 520dc076..6598a6b8 100644 --- a/Support/lib/Python/tex.py +++ b/Support/lib/Python/tex.py @@ -300,6 +300,8 @@ def find_tex_directives(texfile, ignore_root_loops=False): >>> chdir('../..') """ + if not texfile: + return {} root_chain = [texfile] directive_regex = compile(r'%\s*!T[E|e]X\s+([\w-]+)\s*=\s*(.+)') directives = {}