I'm going crazy here. I'm facing a problem that should have been solved by logic already. The problem is this:
I have two folders:
- novapasta /
- novapasta / classes
In the first folder there is a file:
- novapasta / main.py
In the second folder, there are two files:
- novapasta / classes / classPrint.py
- novapasta / classes / classGerar.py
The logic is as follows:
So far so good. In the main.py file is the following:
from classes import classPrint
objeto = classPrint.printar()
print(objeto.b)
In the classPrint file is this code:
import classGerar
objeto = classGerar.Gerar()
class printar():
b = objeto.a
The problem is that classPrint can not import the classGerate. Both classes are in the same folder. But one can not import the other.
obs: If I put main.py in the same class folder. A main works correctly.
Has anyone ever faced this problem and knows the solution?