mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2024-11-24 13:33:04 +00:00
Quick bug fix for os.makedirs() if logfile path not created
This commit is contained in:
parent
23575a75cc
commit
0a9f7b2e7f
1 changed files with 3 additions and 0 deletions
3
set
3
set
|
@ -33,6 +33,9 @@ if not os.path.isfile("src/logs/set_logfile.log"):
|
||||||
# grab the operating system
|
# grab the operating system
|
||||||
operating_system = check_os()
|
operating_system = check_os()
|
||||||
|
|
||||||
|
if not os.path.isdir("src/logs/"):
|
||||||
|
os.makedirs("src/logs/")
|
||||||
|
|
||||||
# check set logfile
|
# check set logfile
|
||||||
if not os.path.isfile("src/logs/set_logfile.log"):
|
if not os.path.isfile("src/logs/set_logfile.log"):
|
||||||
# create new log
|
# create new log
|
||||||
|
|
Loading…
Reference in a new issue