From ccd48dfa4d9fe9877330fb80f9b98107c9c605e8 Mon Sep 17 00:00:00 2001 From: "Mike A. Trethewey" Date: Wed, 4 Mar 2020 02:33:42 -0800 Subject: [PATCH] Sanity checks --- Utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Utils.py b/Utils.py index 55c4d347..c9612abc 100644 --- a/Utils.py +++ b/Utils.py @@ -84,7 +84,9 @@ def output_path(path): output_path.cached_path = os.path.join(documents, 'ALttPEntranceRandomizer') if not os.path.exists(output_path.cached_path): - os.mkdir(output_path.cached_path) + os.makedirs(output_path.cached_path) + if not os.path.join(output_path.cached_path, path): + os.makedirs(os.path.join(output_path.cached_path, path)) return os.path.join(output_path.cached_path, path) output_path.cached_path = None