Quick bug fix for os.makedirs() if logfile path not created

This commit is contained in:
TrustedSec 2013-05-27 18:27:21 -04:00
parent 23575a75cc
commit 0a9f7b2e7f

3
set
View file

@ -33,6 +33,9 @@ if not os.path.isfile("src/logs/set_logfile.log"):
# grab the operating system
operating_system = check_os()
if not os.path.isdir("src/logs/"):
os.makedirs("src/logs/")
# check set logfile
if not os.path.isfile("src/logs/set_logfile.log"):
# create new log