From 7c11ca59cfc29d62052a76ab329fda112072f78e Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 22 Dec 2020 17:11:38 +0100 Subject: [PATCH] merged `pype.lib` imports in `pype.api` to one tuple --- pype/api.py | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/pype/api.py b/pype/api.py index a2b4f22e72..9c0d796128 100644 --- a/pype/api.py +++ b/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" ]