Skip to content

Commit

Permalink
Redirect workfile serialization to a side-car json file.
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-ynput committed Nov 13, 2024
1 parent b8b4019 commit 5b6f6ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/ayon_flame/plugins/create/create_workfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _get_project_workfile_filepath():
"""
project_name = flapi.get_current_project().name
return os.path.join(
workfile_dir = os.environ["AYON_WORKDIR"],
os.environ["AYON_WORKDIR"],
f"{project_name}.workfile"
)

Expand All @@ -46,7 +46,7 @@ def _dump_instance_data(self, data):
Returns:
bool. Has the metadata been updated.
"""
out_path = self._get_project_metadata()
out_path = self._get_project_workfile_filepath()
with open(out_path, "w", encoding="utf-8") as out_file:
json.dump(data, out_file)

Expand All @@ -56,7 +56,7 @@ def _load_instance_data(self):
Returns:
dict. The workfile metadata data.
"""
in_path = self._get_project_metadata()
in_path = self._get_project_workfile_filepath()

try:
with open(in_path) as in_file:
Expand Down

0 comments on commit 5b6f6ca

Please sign in to comment.