Merge pull request #1782 from pypeclub/bugfix/otio_unrelated_error

Otio unrelated error on import
This commit is contained in:
Jakub Trllo 2021-07-01 17:40:01 +02:00 committed by GitHub
commit af62e10b74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,8 @@ try:
import opentimelineio as otio
from opentimelineio import opentime as _ot
except ImportError:
if not os.environ.get("AVALON_APP"):
raise
otio = discover_host_vendor_module("opentimelineio")
_ot = discover_host_vendor_module("opentimelineio.opentime")