From b51556f056053a37b0f81dcde2cbf97d57e608c5 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 1 Jul 2021 19:57:44 +0200 Subject: [PATCH] use self.dbcon.Session instead of avalon.api.Session --- openpype/tools/new_publisher/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpype/tools/new_publisher/control.py b/openpype/tools/new_publisher/control.py index 76ecf6e2df..b390693147 100644 --- a/openpype/tools/new_publisher/control.py +++ b/openpype/tools/new_publisher/control.py @@ -62,7 +62,7 @@ class PublisherController: publish_plugins = pyblish.api.discover() self.publish_plugins = publish_plugins - project_name = avalon.api.Session["AVALON_PROJECT"] + project_name = self.dbcon.Session["AVALON_PROJECT"] system_settings = get_system_settings() project_settings = get_project_settings(project_name)