Update application-single-container example

This commit is contained in:
Roman Mogylatov 2021-10-27 17:00:23 -04:00
parent 6030950596
commit 273cd7cc84
2 changed files with 1 additions and 2 deletions

View File

@ -25,7 +25,6 @@ def main(
if __name__ == "__main__":
container = Container()
container.init_resources()
container.config.from_ini("config.ini")
container.wire(modules=[__name__])
main(*sys.argv[1:])

View File

@ -11,7 +11,7 @@ from . import services
class Container(containers.DeclarativeContainer):
config = providers.Configuration()
config = providers.Configuration(ini_files=["config.ini"])
logging = providers.Resource(
logging.config.fileConfig,