mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
merged pype.lib imports in pype.api to one tuple
This commit is contained in:
parent
c7a650986a
commit
7c11ca59cf
1 changed files with 10 additions and 15 deletions
25
pype/api.py
25
pype/api.py
|
|
@ -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"
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue