fix(attachement): directory not getting created

This commit is contained in:
William Luke 2022-04-26 17:08:53 +03:00
parent 02df3f792e
commit e55b82f529

View File

@ -23,12 +23,12 @@ class Attachment(Data):
self.path = path self.path = path
self.writer = writer self.writer = writer
self.attachment_path = os.path.join(self.path, "attachments") self.attachment_path = os.path.join(self.path, "attachments")
self.start()
if interactive: if interactive:
self.start()
input( input(
f"Please add attachment files to '{os.path.abspath(os.path.join(self.path,'attachments'))}' and then press ENTER to continue" 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): def load(self):
"""Loads attachment data from settings.""" """Loads attachment data from settings."""