Skip to content

Commit

Permalink
more windows gumph
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Nov 15, 2024
1 parent 565562c commit 6e382f7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/gaffer.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ if "%CYCLES_ROOT%" NEQ "" (
call :prependToPath "%CYCLES_ROOT%\bin" PATH
)

rem ONNX
rem ====

if "%ONNX_ROOT%" NEQ "" (
call :appendToPath "%ONNX_ROOT%\lib" PATH
)

rem Set up 3rd party extensions
rem Batch files are awkward at `for` loops. The default `for`, without `/f`
Expand Down
7 changes: 7 additions & 0 deletions python/GafferML/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,16 @@
#
##########################################################################

import os
import pathlib

__import__( "Gaffer" )
__import__( "GafferImage" )

if hasattr( os, "add_dll_directory" ) :
os.add_dll_directory( ( pathlib.Path( os.environ["ONNX_ROOT"] ) / "lib" ).resolve() )
del os, pathlib # Don't pollute the namespace

from ._GafferML import *

__import__( "IECore" ).loadConfig( "GAFFER_STARTUP_PATHS", subdirectory = "GafferML" )

0 comments on commit 6e382f7

Please sign in to comment.