[Python] How can I handle this kind of file structure in python as shown in image

Discussão em 'Python' iniciado por Stack, Janeiro 25, 2025.

  1. Stack

    Stack Membro Participativo

    enter image description here from t1.test import test ModuleNotFoundError: No module named 't1'

    It gives me this error How can I import test.py in main.py file?

    I have tried adding init files as well but can't do anything:( I also tried importing test file in init file of t1 folder but still can't do anything..

    Continue reading...

Compartilhe esta Página