Commit b7c66a7
fix: Support AnkiWeb installs with absolute imports
AnkiWeb uses the addon ID (e.g., "124672614") as the directory name,
while .ankiaddon installs use "anki_mcp_server" from manifest.json.
This broke all absolute imports when installed from AnkiWeb.
Add sys.modules alias so "anki_mcp_server" resolves to the current
package regardless of directory name.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent a171b6c commit b7c66a7
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
| |||
0 commit comments