Use getTempDir()...

This commit is contained in:
Kumi 2022-02-07 14:59:20 +01:00
parent 0cedf783d9
commit a607aeb127

View file

@ -9,7 +9,7 @@ from classes.smtp import SMTP
config = Config("settings.ini")
tempdir = pathlib.Path(config["MONSTER"].get("TempDir", "/tmp/MailMonster/"))
tempdir = config.getTempDir()
if not tempdir.exists():
tempdir.mkdir()