clean-city-64472
10/06/2021, 5:49 PMfrom .subfolder import something
vs from module.subfolder import something
?)hundreds-father-404
10/06/2021, 5:53 PMclean-city-64472
10/06/2021, 6:00 PM# module/__init__.py
from .api import PublicThing
# module/api.py
SECRET_THING = 123
class PublicThing:
pass
# tests/test_module.py
from module import api
print(api.SECRET_THING)
This used to workhundreds-father-404
10/06/2021, 6:03 PMclean-city-64472
10/06/2021, 6:04 PMhundreds-father-404
10/06/2021, 6:05 PMclean-city-64472
10/06/2021, 6:07 PMhundreds-father-404
10/06/2021, 6:08 PMproud-dentist-22844
10/06/2021, 11:17 PM__init__.py
files...proud-dentist-22844
10/06/2021, 11:17 PM