Bugfix: .include wasn't blocking later .requires

When crossing directories, this will still be wrong, but that's a
larger fix for later.
This commit is contained in:
Michael Martin 2012-06-04 00:35:53 -07:00
parent 9323067e91
commit 7e503df96f
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ def pragmaInclude(ppt, line, result):
filename = line.expect("STRING").value
line.expect("EOL")
if type(filename) == str:
global loadedfiles
loadedfiles[filename] = True
result.append(FE.parse_file(ppt, filename))