From 8041776e2cca24e3421dd00481f46aa5b3fe024b Mon Sep 17 00:00:00 2001 From: Patrick Hammer Date: Sun, 11 Apr 2021 07:20:58 +0000 Subject: [PATCH] Update: only export the beliefs listed after the *concepts command --- concept_usefulness_filter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/concept_usefulness_filter.py b/concept_usefulness_filter.py index b203cff1..85b39750 100644 --- a/concept_usefulness_filter.py +++ b/concept_usefulness_filter.py @@ -26,7 +26,12 @@ lines = [] curline = None +started = False for line in sys.stdin: + if "//*concepts" in line: + started = True + if not started: + continue print(line) if line.startswith("*"): print(line, end='')