mirror of
https://github.com/natankeddem/bale.git
synced 2026-04-23 06:50:41 +00:00
create logs folder if not found
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user