Skip to content

Use absolute import for tmc module#299

Merged
andrewmcgr merged 1 commit into
andrewmcgr:mainfrom
rogerlz:kalicoplugins
Jan 3, 2026
Merged

Use absolute import for tmc module#299
andrewmcgr merged 1 commit into
andrewmcgr:mainfrom
rogerlz:kalicoplugins

Conversation

@rogerlz
Copy link
Copy Markdown
Contributor

@rogerlz rogerlz commented Jan 3, 2026

Summary

Changes from . import tmc to from extras import tmc to fix compatibility with Kalico.

Problem

Kalico PR KalicoCrew/kalico#786 changed how plugins are loaded and single-file plugins in klippy/plugins/ are now loaded as klippy.plugins.* instead of klippy.extras.*. This breaks relative imports like from . import tmc which now incorrectly resolve to klippy.plugins.tmc instead of klippy.extras.tmc.

Change relative import to absolute import for compatibility with  Kalico's updated module loading system
@rogerlz rogerlz changed the title fix: use absolute import for tmc module Use absolute import for tmc module Jan 3, 2026
@andrewmcgr andrewmcgr merged commit 14e2266 into andrewmcgr:main Jan 3, 2026
1 check passed
@rogerlz rogerlz deleted the kalicoplugins branch January 3, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants