Skip to content

Commit

Permalink
Merge pull request #354 from ynput/enhancement/use-project-name-from-…
Browse files Browse the repository at this point in the history
…context

Chore: Use project name from context to get settings
  • Loading branch information
iLLiCiTiT authored Apr 3, 2024
2 parents 28b1b8a + 010e125 commit 1bba097
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions client/ayon_core/plugins/publish/collect_settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pyblish import api
from ayon_core.settings import get_current_project_settings
from ayon_core.settings import get_project_settings


class CollectSettings(api.ContextPlugin):
Expand All @@ -9,4 +9,9 @@ class CollectSettings(api.ContextPlugin):
label = "Collect Settings"

def process(self, context):
context.data["project_settings"] = get_current_project_settings()
project_name = context.data["projectName"]
self.log.debug(
"Collecting settings for project: {}".format(project_name)
)
project_settings = get_project_settings(project_name)
context.data["project_settings"] = project_settings

0 comments on commit 1bba097

Please sign in to comment.