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)