mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
moved imports to top of lib
This commit is contained in:
parent
4c004d35f0
commit
cf43bbb18e
1 changed files with 7 additions and 5 deletions
12
pype/lib.py
12
pype/lib.py
|
|
@ -1,14 +1,19 @@
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
import uuid
|
||||||
|
import json
|
||||||
|
import getpass
|
||||||
|
import collections
|
||||||
import logging
|
import logging
|
||||||
import itertools
|
import itertools
|
||||||
import contextlib
|
import contextlib
|
||||||
import subprocess
|
import subprocess
|
||||||
import inspect
|
import inspect
|
||||||
|
import platform
|
||||||
|
|
||||||
from avalon import io
|
from avalon import io, pipeline
|
||||||
import avalon.api
|
import avalon.api
|
||||||
import avalon
|
from pypeapp import config
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
@ -489,7 +494,6 @@ def filter_pyblish_plugins(plugins):
|
||||||
`discover()` method.
|
`discover()` method.
|
||||||
:type plugins: Dict
|
:type plugins: Dict
|
||||||
"""
|
"""
|
||||||
from pypeapp import config
|
|
||||||
from pyblish import api
|
from pyblish import api
|
||||||
|
|
||||||
host = api.current_host()
|
host = api.current_host()
|
||||||
|
|
@ -546,7 +550,6 @@ def get_subsets(asset_name,
|
||||||
Returns:
|
Returns:
|
||||||
dict: subsets with version and representaions in keys
|
dict: subsets with version and representaions in keys
|
||||||
"""
|
"""
|
||||||
from avalon import io
|
|
||||||
|
|
||||||
# query asset from db
|
# query asset from db
|
||||||
asset_io = io.find_one({"type": "asset", "name": asset_name})
|
asset_io = io.find_one({"type": "asset", "name": asset_name})
|
||||||
|
|
@ -620,7 +623,6 @@ class CustomNone:
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""Create uuid as identifier for custom None."""
|
"""Create uuid as identifier for custom None."""
|
||||||
import uuid
|
|
||||||
self.identifier = str(uuid.uuid4())
|
self.identifier = str(uuid.uuid4())
|
||||||
|
|
||||||
def __bool__(self):
|
def __bool__(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue