From 49e5f97eb4e536c78e8ae332ef4c60c0159cd519 Mon Sep 17 00:00:00 2001 From: Jesse Cirimelli-Low Date: Wed, 17 Apr 2019 15:02:10 -0700 Subject: [PATCH] fixed bug where log would fail to generate if output folder did not exist --- compiler/debug.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/debug.py b/compiler/debug.py index 9ce1bf3f..c697425d 100644 --- a/compiler/debug.py +++ b/compiler/debug.py @@ -58,6 +58,8 @@ def log(str): # in another log file if the path or name changes. if not globals.OPTS.output_path.endswith('/'): globals.OPTS.output_path += "/" + if not os.path.isdir(globals.OPTS.output_path): + os.mkdir(globals.OPTS.output_path) compile_log = open(globals.OPTS.output_path + globals.OPTS.output_name + '.log', "w+") log.create_file = 0