I have a python app with a file tree like so
├── app
│ ├── __init__.py
│ ├── app.py
│ └── utils.py
├── files.json
├── hello.txt
├── main.py
└── web
├── __init__.py
├── utils.py
└── web.py
In my main.py, I have to import the contents of web.py with the import statement
from web.web import *
. How can I shorten this to from web import *
while still keeping web.py and utils.py in their own folder? Is there something I can edit in my init.py?
New contributor
s4D_t0y is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.