Update results_dejavu.py

This commit is contained in:
Fabio Costa 2014-06-29 22:28:03 +01:00
parent f9a59e42e6
commit 4f4a50ba9f

View file

@ -72,6 +72,11 @@ if options.log == True:
if options.results_folder != "" and options.results_folder[len(options.results_folder)-1] != '/': if options.results_folder != "" and options.results_folder[len(options.results_folder)-1] != '/':
options.results_folder += "/" options.results_folder += "/"
try:
os.stat(options.results_folder)
except:
os.mkdir(options.results_folder)
def log_msg(msg): def log_msg(msg):
if options.log == True: if options.log == True:
logging.debug(msg) logging.debug(msg)