I am importing a package which has following folder structure:
package
├── <src>/
│ ├── p1/
│ │ └── p1.py
│ └── p2.py
└──scripts
└──xyz.py
I want to import the xyz from the scripts folder in another package. How can I do it?
I can import the p1.py using from package.p1 import p1
but when I try to do from package.scripts import xyz
I get the error ModuleNotFoundError: No module named package.scripts
Thanks for the help.