edit: edit directory name

This commit is contained in:
RTAkland
2021-11-14 13:11:36 +08:00
parent d58d080cba
commit b2e0a3e0b8
3 changed files with 4 additions and 4 deletions

View File

@@ -258,11 +258,11 @@ class SendWeatherMail:
self.message.attach(MyImage)
image_count += 1
with open('./resource/extra-icon/sunrise.png', 'rb') as sr_f:
with open('resource/basic-resources/sunrise.png', 'rb') as sr_f:
sunrise_img = MIMEImage(sr_f.read())
sunrise_img.add_header('Content-ID', 'sunrise')
self.message.attach(sunrise_img)
with open('./resource/extra-icon/sunset.png', 'rb') as ss_f:
with open('resource/basic-resources/sunset.png', 'rb') as ss_f:
sunset_img = MIMEImage(ss_f.read())
sunset_img.add_header('Content-ID', 'sunset')
self.message.attach(sunset_img)
@@ -408,11 +408,11 @@ class SendWeatherMail:
self.message.attach(MyImage)
image_count += 1
with open('./resource/extra-icon/sunrise.png', 'rb') as sr_f:
with open('resource/basic-resources/sunrise.png', 'rb') as sr_f:
sunrise_img = MIMEImage(sr_f.read())
sunrise_img.add_header('Content-ID', 'sunrise')
self.message.attach(sunrise_img)
with open('./resource/extra-icon/sunset.png', 'rb') as ss_f:
with open('resource/basic-resources/sunset.png', 'rb') as ss_f:
sunset_img = MIMEImage(ss_f.read())
sunset_img.add_header('Content-ID', 'sunset')
self.message.attach(sunset_img)

View File

Before

Width:  |  Height:  |  Size: 993 B

After

Width:  |  Height:  |  Size: 993 B

View File

Before

Width:  |  Height:  |  Size: 1005 B

After

Width:  |  Height:  |  Size: 1005 B