diff --git a/client/ayon_maya/plugins/publish/extract_layout.py b/client/ayon_maya/plugins/publish/extract_layout.py index 2b5b33cd..03e92f63 100644 --- a/client/ayon_maya/plugins/publish/extract_layout.py +++ b/client/ayon_maya/plugins/publish/extract_layout.py @@ -135,6 +135,7 @@ def process(self, instance): json_filename = "{}.json".format(instance.name) json_path = os.path.join(stagingdir, json_filename) + with open(json_path, "w+") as file: json.dump(json_data, fp=file, indent=2)