mirror of
https://github.com/michaelcmartin/Ophis.git
synced 2025-01-17 21:32:44 +00:00
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:
parent
9323067e91
commit
7e503df96f
@ -36,6 +36,8 @@ def pragmaInclude(ppt, line, result):
|
|||||||
filename = line.expect("STRING").value
|
filename = line.expect("STRING").value
|
||||||
line.expect("EOL")
|
line.expect("EOL")
|
||||||
if type(filename) == str:
|
if type(filename) == str:
|
||||||
|
global loadedfiles
|
||||||
|
loadedfiles[filename] = True
|
||||||
result.append(FE.parse_file(ppt, filename))
|
result.append(FE.parse_file(ppt, filename))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user