From da636171de0bf1c7e1f02c3c36307bcd5146c325 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Wed, 27 Oct 2021 17:06:24 -0400 Subject: [PATCH] Update decoupled-packages example --- examples/miniapps/decoupled-packages/example/__main__.py | 1 - examples/miniapps/decoupled-packages/example/containers.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/miniapps/decoupled-packages/example/__main__.py b/examples/miniapps/decoupled-packages/example/__main__.py index 9eb63de8..11bf4202 100644 --- a/examples/miniapps/decoupled-packages/example/__main__.py +++ b/examples/miniapps/decoupled-packages/example/__main__.py @@ -35,7 +35,6 @@ def main( if __name__ == "__main__": application = ApplicationContainer() - application.config.from_ini("config.ini") application.wire(modules=[__name__]) main() diff --git a/examples/miniapps/decoupled-packages/example/containers.py b/examples/miniapps/decoupled-packages/example/containers.py index cdb9a05e..5a27b416 100644 --- a/examples/miniapps/decoupled-packages/example/containers.py +++ b/examples/miniapps/decoupled-packages/example/containers.py @@ -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)