mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
move import statements to top
This commit is contained in:
parent
e923460080
commit
039ffdf5d5
2 changed files with 3 additions and 6 deletions
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
import pyblish.api
|
||||
from avalon import api, io
|
||||
|
||||
|
||||
class CollectSceneLoadedVersions(pyblish.api.ContextPlugin):
|
||||
|
|
@ -22,8 +23,6 @@ class CollectSceneLoadedVersions(pyblish.api.ContextPlugin):
|
|||
]
|
||||
|
||||
def process(self, context):
|
||||
from avalon import api, io
|
||||
|
||||
host = api.registered_host()
|
||||
if host is None:
|
||||
self.log.warn("No registered host.")
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
from collections import OrderedDict
|
||||
from avalon import io
|
||||
import pyblish.api
|
||||
|
||||
|
||||
|
|
@ -94,8 +96,6 @@ class IntegrateInputLinks(pyblish.api.ContextPlugin):
|
|||
None
|
||||
|
||||
"""
|
||||
from collections import OrderedDict
|
||||
from avalon import io
|
||||
# NOTE:
|
||||
# using OrderedDict() here is just for ensuring field order between
|
||||
# python versions, if we ever need to use mongodb operation '$addToSet'
|
||||
|
|
@ -117,8 +117,6 @@ class IntegrateInputLinks(pyblish.api.ContextPlugin):
|
|||
in database will be updated.
|
||||
|
||||
"""
|
||||
from avalon import io
|
||||
|
||||
for instance in instances:
|
||||
version_doc = instance.data.get("versionEntity")
|
||||
if version_doc is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue