Skip to content

Commit

Permalink
LocalDispatcherTest : Work around Windows DLL problems
Browse files Browse the repository at this point in the history
By importing Gaffer before GafferDispatch, we make sure the DLL paths
are set up in time. I suppose we could alternatively add the DLL paths
in every single Python module, but I don't have much appetite for that.
  • Loading branch information
johnhaddon committed Feb 15, 2024
1 parent 64adf40 commit 19a35bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/GafferDispatchTest/LocalDispatcherTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ def testShutdownDuringBackgroundDispatch( self ) :
# has finished.

output = subprocess.check_output(
[ str( Gaffer.executablePath() ), "env", "python", "-c", "import GafferDispatchTest; GafferDispatchTest.LocalDispatcherTest._shutdownDuringBackgroundDispatch()" ],
[ str( Gaffer.executablePath() ), "env", "python", "-c", "import Gaffer; import GafferDispatchTest; GafferDispatchTest.LocalDispatcherTest._shutdownDuringBackgroundDispatch()" ],
stderr = subprocess.STDOUT, text = True
)

Expand Down

0 comments on commit 19a35bd

Please sign in to comment.