From 58bd79bb11e2b76f5f97080a2131904d04e2cb64 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 16 Feb 2021 12:25:08 +0100 Subject: [PATCH] removed deprecated.py from pype lib --- pype/lib/deprecated.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 pype/lib/deprecated.py diff --git a/pype/lib/deprecated.py b/pype/lib/deprecated.py deleted file mode 100644 index 7d4fd5a2b1..0000000000 --- a/pype/lib/deprecated.py +++ /dev/null @@ -1,26 +0,0 @@ -import os - - -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. - """ - from avalon import io - 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. - """ - from avalon import io - required_keys = ["AVALON_PROJECT", "AVALON_ASSET", "AVALON_SILO"] - for key in required_keys: - os.environ[key] = os.environ.get(key, "") - io.install()