From 7e503df96f2104ef64cb95f3234e008389a3ff95 Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Mon, 4 Jun 2012 00:35:53 -0700 Subject: [PATCH] Bugfix: .include wasn't blocking later .requires When crossing directories, this will still be wrong, but that's a larger fix for later. --- src/Ophis/CorePragmas.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Ophis/CorePragmas.py b/src/Ophis/CorePragmas.py index f6b25a1..b234b87 100644 --- a/src/Ophis/CorePragmas.py +++ b/src/Ophis/CorePragmas.py @@ -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))