I have a project structure with mostly empty python files:
-project
--work1
--__init__.py
--app.py
--momo.py
momo.py
import numpy as np
def plus(x):
return x
app.py
from . import momo
a = momo.plus(6)
Running app.py directly results in this error:
from . import momo
ImportError: attempted relative import with no known parent package
I have tried change to "from plus import momo" but this yields the same error.
Python version 3.8
Any hints would be much appreciated.