create logs folder if not found

This commit is contained in:
Natan Keddem
2023-11-04 00:00:03 -04:00
parent 309d86b3b9
commit 8afceb125a

View File

@@ -6,6 +6,8 @@ lastdebug_path = "logs/lastdebug.log"
info_path = "logs/info.log"
warn_path = "logs/warning.log"
if not os.path.exists("logs"):
os.makedirs("logs")
try:
os.remove(lastinfo_path)
except OSError: