mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
reraise exception if AVALON_APP is not set
This commit is contained in:
parent
46147cb78d
commit
69a3d4f046
1 changed files with 2 additions and 0 deletions
|
|
@ -7,6 +7,8 @@ try:
|
||||||
import opentimelineio as otio
|
import opentimelineio as otio
|
||||||
from opentimelineio import opentime as _ot
|
from opentimelineio import opentime as _ot
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
if not os.environ.get("AVALON_APP"):
|
||||||
|
raise
|
||||||
otio = discover_host_vendor_module("opentimelineio")
|
otio = discover_host_vendor_module("opentimelineio")
|
||||||
_ot = discover_host_vendor_module("opentimelineio.opentime")
|
_ot = discover_host_vendor_module("opentimelineio.opentime")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue