Skip to content

Commit

Permalink
GafferTractor : Fix import of tractor.api.author
Browse files Browse the repository at this point in the history
Well, this is embarrassing. Back when I added testing of TractorDispatcher in CI by [mocking](f7bf8f7) the `tractor.api.author` module, I accidentally completely broke the import for the _real_ module. The fix is simple, but the humiliation will last forever...
  • Loading branch information
johnhaddon committed Mar 6, 2024
1 parent 550ceae commit 67db65f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
1.4.x.x (relative to 1.4.0.0b2)
=======

Fixes
-----

- Tractor : Fixed failure to import Tractor API [^1].

[^1]: To be omitted from final release notes for 1.4.0.0.

1.4.0.0b2 (relative to 1.4.0.0b1)
=========
Expand Down
2 changes: 1 addition & 1 deletion python/GafferTractor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
# to insert a mock API for testing in GafferTractorTest.
def tractorAPI() :

from tractor.api.author import author
import tractor.api.author as author
return author

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

0 comments on commit 67db65f

Please sign in to comment.