My project structure is as follows:
package/
module/
__init__.py
component.py
main.py
script.py
In main.py I have: from module.component import something
.
And in script.py I want to import a function (lets call it ‘function’) from main.py.
What is the correct way to do this?
(I keep getting module not found errors)
I tried changing the working directory.
1