fix: correct import module path in edit_file.py #195
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
ImportError while importing test module '/Users/ezyang/Dev/codemcp/e2e/test_security.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../.local/share/uv/python/cpython-3.12.9-macos-aarch64-none/lib/python3.12/importlib/init.py:90: in import_module
return *bootstrap.*gcd_import(name[level:], package, level)
e2e/test_security.py:8: in
from codemcp.testing import MCPEndToEndTestCase
codemcp/init.py:3: in
from .hot_reload_entry import run as run_hot_reload
codemcp/hot_reload_entry.py:17: in
from codemcp.main import (
codemcp/main.py:8: in
from .tools.edit_file import edit_file_content
codemcp/tools/edit_file.py:14: in
from .file_utils import (
E ModuleNotFoundError: No module named 'codemcp.tools.file_utils'
This moved to codemcp.file_tuils
codemcp-id: 205-fix-correct-import-module-path-in-edit-file-py