Skip to content

Commit

Permalink
Flow.export: add temp=False arg
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Aug 22, 2024
1 parent b20d989 commit 247f0a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion seal5/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ def deploy(self, dest: Path, verbose: bool = False, stage: PatchStage = PatchSta
self.settings.save()
logger.info("Completed deployment of Seal5 LLVM")

def export(self, dest: Path, verbose: bool = False):
def export(self, dest: Path, verbose: bool = False, temp: bool = False):
del verbose # unused
logger.info("Exporting Seal5 artifacts")
start = time.time()
Expand All @@ -813,6 +813,8 @@ def export(self, dest: Path, verbose: bool = False):
self.settings.logs_dir,
self.settings.settings_file,
]
if temp:
artifacts.append(self.settings.temp_dir)
with tarfile.open(dest, mode="w:gz") as archive:
for artifact in artifacts:
name = str(artifact)
Expand Down

0 comments on commit 247f0a0

Please sign in to comment.