Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Try formatting paths with current environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
tokejepsen committed Aug 4, 2021
1 parent 07667aa commit fe4a0ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openpype/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ def modified_emit(obj, record):
.get(platform_name)
) or []
for path in project_plugins:
try:
path = str(path.format(**os.environ))
except KeyError:
pass

if not path or not os.path.exists(path):
continue

Expand Down

0 comments on commit fe4a0ea

Please sign in to comment.