Aug-22-2022, 10:24 PM
(This post was last modified: Aug-22-2022, 10:24 PM by Kjaglewicz.)
So the path is:
What's the funniest? When in file erp.py i wrote a line:
Please HELP!! :(
Output:secure-erp\
controller\
hr_controller.py
main_controller.py
model\
hr\
hr.py
util.py
erp.py
In file hr.py i need to import a function from util.py. So the code is from model import utilbut it gives me an error
Error:"ModuleNotFoundError: No module named 'model'"
I've tried to add __init__.py file, but it doesn't work.What's the funniest? When in file erp.py i wrote a line:
from controller import main_controllereverything works perfect.
Please HELP!! :(