Skip to content

Commit

Permalink
print email attachments folder
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed Dec 11, 2024
1 parent cbaa3db commit c849bab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jobs/notebook-report/notebookreport.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def process_email_attachments(filenames, message):
f"attachment; filename= {file}",
)
file = os.path.join(os.getcwd(), r"data/") + file
print(os.listdir(os.path.join(os.getcwd(), r"data/")))
with open(file, "rb") as attachment:
part.set_payload(attachment.read())
encoders.encode_base64(part)
Expand Down

0 comments on commit c849bab

Please sign in to comment.