merged pype.lib imports in pype.api to one tuple

This commit is contained in:
iLLiCiTiT 2020-12-22 17:11:38 +01:00
parent c7a650986a
commit 7c11ca59cf

View file

@ -9,7 +9,15 @@ from .lib import (
PypeLogger,
Anatomy,
config,
execute
execute,
run_subprocess,
version_up,
get_asset,
get_hierarchy,
get_version_from_path,
get_last_version_from_path,
source_hash,
get_latest_version
)
from .lib.mongo import (
@ -37,19 +45,6 @@ from .action import (
RepairContextAction
)
from .lib import (
version_up,
get_asset,
get_hierarchy,
get_version_from_path,
get_last_version_from_path,
source_hash,
get_latest_version
)
# Special naming case for subprocess since its a built-in method.
from .lib import _subprocess as subprocess
# for backward compatibility with Pype 2
Logger = PypeLogger
@ -94,6 +89,6 @@ __all__ = [
"get_last_version_from_path",
"source_hash",
"subprocess",
"run_subprocess",
"get_latest_version"
]