Visual Studio Code – Automatically add project to sys.path in VS Code like PyCharm/Spyder do?
Problem In a Python project with subpackages, absolute imports don't work inside any files that aren't in the project root directory. - my_project - my_package - __init__.py - my_module.py - my_scripts - some_script.py some_script.py import sys print('n'.join(sys.path)) from my_package.my_module import…