79110502

Date: 2024-10-21 14:33:40
Score: 1.5
Natty:
Report link

The answer is to use absolute imports in the utils.py file as:

from app.data import *

Then to run main2.py, we need to use:

python main2.py

while being inside the app folder.

and to run main.py, we need to use:

python -m app.main

this way we can run both files without conflicts.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jeet Sensarma