Skip to content

Commit 7333644

Browse files
authored
Merge pull request #1384 from danieldresser-ie/ieUSDWarning
IECoreUSD : Import some core USD modules before _IECoreUSD
2 parents b156c83 + 97eae7f commit 7333644

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contrib/IECoreUSD/python/IECoreUSD/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
#
3333
##########################################################################
3434

35+
# In the ImageEngine env, if _IECoreUSD is imported before these pxr modules,
36+
# we get a weird exception when we later load the pxr modules. We're not
37+
# 100% sure why this is happening, but importing them first isn't
38+
# unreasonable.
39+
__import__( "pxr.Kind" )
40+
__import__( "pxr.Vt" )
41+
__import__( "pxr.Sdf" )
42+
3543
from ._IECoreUSD import *
3644

3745
__import__( "IECore" ).loadConfig( "CORTEX_STARTUP_PATHS", subdirectory = "IECoreUSD" )

0 commit comments

Comments
 (0)