moved imports to top of lib

This commit is contained in:
iLLiCiTiT 2020-03-04 17:34:12 +01:00
parent 4c004d35f0
commit cf43bbb18e

View file

@ -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):