I have a problem, I use Python 3.6.7 and I'm doing a Flask application with the following structure:
/app /arquivospy consultaMercados.py definirMercados.py interfaceBD.py main.py outros arquivos py /static /templates app.py form.py
In the folder / filespy have a py scripts that I use to read a TXT and register in the BD generate a means to do accounts and save in the BD has scripts of query to the BD, has the file main.py that I use in the same shell , it has a little box that I inform the name of the TXT file and it automates everything, ie inside the folder / filespy everything is working right.
The problem is with app.py that does the Flask routes, it does matter:
import filespy.interfaceBD and from this error:
File "app.py", line 7, in import arquivospy.interfaceBD File "/home/karont/SiteHtml/app/arquivospy/interfaceBD.py", line 2, in import definirMercados as mercados ModuleNotFoundError: No module named 'definirMercados'