mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
remove the duplicated version collector
This commit is contained in:
parent
b246ce9ea6
commit
7676724745
1 changed files with 0 additions and 19 deletions
|
|
@ -1,19 +0,0 @@
|
|||
import pyblish.api
|
||||
|
||||
from ayon_core.pipeline import registered_host
|
||||
from ayon_core.lib import get_version_from_path
|
||||
|
||||
|
||||
class CollectWorkfileVersion(pyblish.api.ContextPlugin):
|
||||
"""Collect current workfile version as context data"""
|
||||
|
||||
order = pyblish.api.CollectorOrder - 0.5
|
||||
label = "Current Workfile Version"
|
||||
|
||||
def process(self, context):
|
||||
host = registered_host()
|
||||
path = host.get_current_workfile()
|
||||
if path:
|
||||
version = int(get_version_from_path(path))
|
||||
context.data["version"] = version
|
||||
self.log.debug(f"Current Version: {version}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue