mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
controller can have defined AvalonMongoDB
This commit is contained in:
parent
902656ec30
commit
c643ac5f62
1 changed files with 7 additions and 1 deletions
|
|
@ -13,11 +13,17 @@ from openpype.pipeline import (
|
|||
|
||||
|
||||
class PublisherController:
|
||||
def __init__(self, headless=False):
|
||||
def __init__(self, dbcon=None, headless=False):
|
||||
self.log = logging.getLogger("PublisherController")
|
||||
self.host = avalon.api.registered_host()
|
||||
self.headless = headless
|
||||
|
||||
if dbcon is None:
|
||||
session = avalon.api.session_data_from_environment(True)
|
||||
dbcon = avalon.api.AvalonMongoDB(session)
|
||||
dbcon.install()
|
||||
self.dbcon = dbcon
|
||||
|
||||
self.creators = {}
|
||||
self.publish_plugins = []
|
||||
self.instances = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue