I have created a python package and I need to have np.load('./my_file.npy')
in my package.
when I install package and run the code the path is not correct and python cannot find the file
I tried the following code as well
dirname = Path(__file__).parent
path = dirname / 'my_file.npy'
np.load(str(path))
In pyproject.toml
file I have as well
[tool.flit.sdist]
include = [
"my_file.npy",
]