mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
13 lines
345 B
Python
13 lines
345 B
Python
import pyblish.api
|
|
|
|
|
|
class CollectHost(pyblish.api.ContextPlugin):
|
|
"""Inject the host into context"""
|
|
|
|
order = pyblish.api.CollectorOrder
|
|
|
|
def process(self, context):
|
|
import pyblish.api
|
|
|
|
context.set_data("host", pyblish.api.current_host())
|
|
self.log.info("current host: {}".format(pyblish.api.current_host()))
|