From b190316fbfc764314fbb773396ed599754e12db8 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 6 Aug 2018 09:59:52 +0200 Subject: [PATCH] Implement save benchmark operator --- benchmark/space/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmark/space/__init__.py b/benchmark/space/__init__.py index aed99e1..80a17d0 100644 --- a/benchmark/space/__init__.py +++ b/benchmark/space/__init__.py @@ -604,7 +604,8 @@ class BENCHMARK_OT_save(bpy.types.Operator): ) def execute(self, context): - print("Saving to " + self.filepath) + with open(self.filepath, "w") as f: + f.write(json.dumps(global_result_dict, sort_keys=True, indent=2)) return {'FINISHED'} def invoke(self, context, event):