Skip to content

Commit

Permalink
IECoreDelight : Remove Windows import workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
murraystevenson authored and johnhaddon committed Apr 30, 2024
1 parent d661bf4 commit fce4876
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions python/IECoreDelight/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,3 @@
del os, pathlib # Don't pollute the namespace

from ._IECoreDelight import *

# The IECoreDelight module does not need any symbols from IECoreDelight, so MSVC tries
# to be helpful and not load IECoreDelight.dll. Skipping that means that
# 3Delight is never registered as a renderer, so we import / register it manually.

import os

if os.name == "nt" :

import ctypes

try :
ctypes.CDLL( "IECoreDelight.dll" )
except :
raise ImportError

0 comments on commit fce4876

Please sign in to comment.