mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
OP-2053 - allow injection of AVALON_DB env var as a db
This commit is contained in:
parent
a80ed0deec
commit
148bb47b7d
1 changed files with 2 additions and 1 deletions
3
start.py
3
start.py
|
|
@ -339,13 +339,14 @@ def set_avalon_environments():
|
|||
os.environ.get("AVALON_MONGO")
|
||||
or os.environ["OPENPYPE_MONGO"]
|
||||
)
|
||||
avalon_db = os.environ.get("AVALON_DB") or "avalon" # for tests
|
||||
os.environ.update({
|
||||
# Mongo url (use same as OpenPype has)
|
||||
"AVALON_MONGO": avalon_mongo_url,
|
||||
|
||||
"AVALON_SCHEMA": schema_path,
|
||||
# Mongo DB name where avalon docs are stored
|
||||
"AVALON_DB": "avalon",
|
||||
"AVALON_DB": avalon_db,
|
||||
# Name of config
|
||||
"AVALON_CONFIG": "openpype",
|
||||
"AVALON_LABEL": "OpenPype"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue