0

I have created a folder named 'application' . Within that there are two subfolders 'one' and 'two'. When i try to import a python file from 'two' subfolder to a python file in 'one' subfolder i get the below error:

ModuleNotFoundError: No module named 'application'

The code i am running is :

from application.two import greet

Below is the file structure in VS code

File structure:
file strucure

I have tried all suggestions from below questions and still it doesen't work:

  1. Importing files from different folder
  2. Import a file from a subdirectory?

0 Answers0