removed deprecated from lib

This commit is contained in:
iLLiCiTiT 2020-12-03 12:59:18 +01:00
parent 6f3fe95405
commit d24ac5597a
3 changed files with 0 additions and 33 deletions

View file

@ -1,11 +1,6 @@
# -*- coding: utf-8 -*-
"""Pype lib module."""
from .deprecated import (
get_avalon_database,
set_io_database
)
from .env_tools import (
env_value_to_bool,
get_paths_from_environ

View file

@ -1,26 +0,0 @@
import os
from avalon import io
def get_avalon_database():
"""Mongo database used in avalon's io.
* Function is not used in pype 3.0 where was replaced with usage of
AvalonMongoDB.
"""
if io._database is None:
set_io_database()
return io._database
def set_io_database():
"""Set avalon's io context with environemnts.
* Function is not used in pype 3.0 where was replaced with usage of
AvalonMongoDB.
"""
required_keys = ["AVALON_PROJECT", "AVALON_ASSET", "AVALON_SILO"]
for key in required_keys:
os.environ[key] = os.environ.get(key, "")
io.install()

View file

@ -13,8 +13,6 @@ def test_backward_compatibility(printer):
from pype.lib import ApplicationLaunchFailed
from pype.lib import launch_application
from pype.lib import ApplicationAction
from pype.lib import get_avalon_database
from pype.lib import set_io_database
from pype.lib import get_ffmpeg_tool_path
from pype.lib import get_last_version_from_path