From 0d85f125e7a8c4ef0042a73fb0176b67741b391b Mon Sep 17 00:00:00 2001
From: sicer <mansicer@qq.com>
Date: Sat, 13 Nov 2021 15:52:33 +0800
Subject: [PATCH] fix bugs

---
 src/run.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/run.py b/src/run.py
index 63b5093..894b0d3 100755
--- a/src/run.py
+++ b/src/run.py
@@ -51,6 +51,7 @@ def run(_run, _config, _log):
     else:
         json_output_direc = os.path.join(dirname(dirname(abspath(__file__))), "results", args.env, alg_name)
     json_exp_direc = os.path.join(json_output_direc, unique_token + '.json')
+    os.makedirs(json_output_direc, exist_ok=True)
     json_logging = {'config': vars(args)} 
     with open(json_exp_direc, 'w') as f:
         json.dump(json_logging, f, ensure_ascii=False)
-- 
GitLab