mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
removed deprecated from lib
This commit is contained in:
parent
6f3fe95405
commit
d24ac5597a
3 changed files with 0 additions and 33 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue