edube.org/learn/pe-2/modules-and-packages-36
1 Users
0 Comments
3 Highlights
0 Notes
Tags
Top Highlights
You need to use a different trick instead - Python expects that there is a file with a very unique name inside the package's folder: __init__.py.
The content of the file is executed when any of the package's modules is imported. If you don't want any special initializations, you can leave the file empty, but you mustn't omit it.
The content of the file is executed when any of the package's modules is imported. If you don't want any special initializations, you can leave the file empty, but you mustn't omit it.
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.