From 349fd6e8606b7674f25ff2834ee618536e39837c Mon Sep 17 00:00:00 2001 From: Lee Richardson Date: Tue, 6 Sep 2022 13:15:31 -0400 Subject: [PATCH] store encryption package zip in key ceremony specific folder --- .../components/create_election_component.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/electionguard_gui/components/create_election_component.py b/src/electionguard_gui/components/create_election_component.py index 37d0fae04..b0011150d 100644 --- a/src/electionguard_gui/components/create_election_component.py +++ b/src/electionguard_gui/components/create_election_component.py @@ -103,7 +103,12 @@ def create_election( self._output_setup_files_step.output( election_inputs, build_election_results, temp_out_dir, None ) - zip_file = path.join(get_data_dir(), "public_encryption_package") + zip_file = path.join( + get_data_dir(), + "encryption_packages", + key_ceremony_id, + "public_encryption_package", + ) encryption_package_file = self._zip(temp_out_dir, zip_file) guardian_records = [ guardian.publish() for guardian in election_inputs.guardians