Skip to content

Commit 3015c12

Browse files
committed
Write overlay metadata at end of extraction.
1 parent 4ef07fd commit 3015c12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/extractor/semmle/worker.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ def close(self):
162162
self.module_queue.put(None)
163163
for p in self.procs:
164164
p.join()
165+
if 'CODEQL_EXTRACTOR_PYTHON_OVERLAY_BASE_METADATA_OUT' in os.environ:
166+
with open(os.environ['CODEQL_EXTRACTOR_PYTHON_OVERLAY_BASE_METADATA_OUT'], 'w', encoding='utf-8') as f:
167+
metadata = {}
168+
json.dump(metadata, f)
165169
self.logger.info("Processed %d modules in %0.2fs", len(self.import_graph.done), time.time() - self.start_time)
166170

167171
def stop(self, timeout=2.0):

0 commit comments

Comments
 (0)