skip to Main Content

Visual Studio Code – Cannot import local files in python debugger (vs code)

I am doing the following: mkdir folder_structure mkdir folder_structure/utils touch folder_structure/utils/tools.py touch folder_structure/main.py Write in main.py: from folder_structure.utils.tools import dummy if __name__ == '__main__': dummy() Write in tools.py: def dummy(): print("Dummy") touch folder_structure/__init__.py touch folder_structure/utils/__init__.py Run the vs code debugger…

VIEW QUESTION
Back To Top
Search