From 4f4a50ba9fb5341d6a8205c68e877730fa7523a6 Mon Sep 17 00:00:00 2001 From: Fabio Costa Date: Sun, 29 Jun 2014 22:28:03 +0100 Subject: [PATCH] Update results_dejavu.py --- scripts/results_dejavu.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/results_dejavu.py b/scripts/results_dejavu.py index fa4451f..786a0cd 100644 --- a/scripts/results_dejavu.py +++ b/scripts/results_dejavu.py @@ -72,6 +72,11 @@ if options.log == True: if options.results_folder != "" and options.results_folder[len(options.results_folder)-1] != '/': options.results_folder += "/" +try: + os.stat(options.results_folder) +except: + os.mkdir(options.results_folder) + def log_msg(msg): if options.log == True: logging.debug(msg)