Update decoupled-packages example

This commit is contained in:
Roman Mogylatov 2021-10-27 17:06:24 -04:00
parent 7c1d8d5225
commit da636171de
2 changed files with 1 additions and 2 deletions

View File

@ -35,7 +35,6 @@ def main(
if __name__ == "__main__":
application = ApplicationContainer()
application.config.from_ini("config.ini")
application.wire(modules=[__name__])
main()

View File

@ -12,7 +12,7 @@ from .analytics.containers import AnalyticsContainer
class ApplicationContainer(containers.DeclarativeContainer):
config = providers.Configuration()
config = providers.Configuration(ini_files=["config.ini"])
sqlite = providers.Singleton(sqlite3.connect, config.database.dsn)