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"
|
info_path = "logs/info.log"
|
||||||
warn_path = "logs/warning.log"
|
warn_path = "logs/warning.log"
|
||||||
|
|
||||||
|
if not os.path.exists("logs"):
|
||||||
|
os.makedirs("logs")
|
||||||
try:
|
try:
|
||||||
os.remove(lastinfo_path)
|
os.remove(lastinfo_path)
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|||||||
Reference in New Issue
Block a user