Skip to content

Commit

Permalink
Merge pull request #9 from compas-dev/c2x-compat
Browse files Browse the repository at this point in the history
update_component has moved to a new location
  • Loading branch information
gonzalocasas authored Feb 20, 2024
2 parents 12598da + 6b3c334 commit e2035df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

* Fixed compatibility issues with COMPAS 2.0 on the background worker.

### Removed


Expand Down
7 changes: 6 additions & 1 deletion src/compas_eve/ghpython/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
import scriptcontext
import System
from compas_ghpython import create_id
from compas_ghpython import update_component

# COMPAS 1.x compatibility
try:
from compas_ghpython.timer import update_component
except ImportError:
from compas_ghpython import update_component


class BackgroundWorker(object):
Expand Down

0 comments on commit e2035df

Please sign in to comment.