Skip to content

Commit 6f208e9

Browse files
committed
Write overlay metadata at end of extraction.
1 parent 49b18db commit 6f208e9

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
@@ -192,6 +192,10 @@ def close(self):
192192
self.module_queue.put(None)
193193
for p in self.procs:
194194
p.join()
195+
if 'CODEQL_EXTRACTOR_PYTHON_OVERLAY_BASE_METADATA_OUT' in os.environ:
196+
with open(os.environ['CODEQL_EXTRACTOR_PYTHON_OVERLAY_BASE_METADATA_OUT'], 'w', encoding='utf-8') as f:
197+
metadata = {}
198+
json.dump(metadata, f)
195199
self.logger.info("Processed %d modules in %0.2fs", len(self.import_graph.done), time.time() - self.start_time)
196200

197201
def stop(self, timeout=2.0):

0 commit comments

Comments
 (0)