From e55b82f5295397b3e4123297bc6b231ca251bc83 Mon Sep 17 00:00:00 2001 From: William Luke Date: Tue, 26 Apr 2022 17:08:53 +0300 Subject: [PATCH] fix(attachement): directory not getting created --- cic/contract/components/attachment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cic/contract/components/attachment.py b/cic/contract/components/attachment.py index c18c0a6..91e431f 100644 --- a/cic/contract/components/attachment.py +++ b/cic/contract/components/attachment.py @@ -23,12 +23,12 @@ class Attachment(Data): self.path = path self.writer = writer self.attachment_path = os.path.join(self.path, "attachments") + self.start() if interactive: - self.start() input( f"Please add attachment files to '{os.path.abspath(os.path.join(self.path,'attachments'))}' and then press ENTER to continue" ) - self.load() + self.load() def load(self): """Loads attachment data from settings."""