- VSCode Version: 1.41.1
- OS Version:Ubuntu 18.04
Steps to Reproduce:
# tree:
.
├── demo1
│ ├── __init__.py
│ └── test.py
├── __init__.py
├── auto.py
# auto.py
def func():
print("1")
# test.py
from auto import func
func()
Use examples to solve problems that arise in a project Run the test.py file, and I get "ModuleNotFoundError: No module named 'func'" I used 'CTRL '+ left mouse button in test.py to jump to func The same code can be run in pycharm