mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-10-31 16:07:51 +03:00 
			
		
		
		
	Update README.rst
This commit is contained in:
		
							parent
							
								
									725f6e896f
								
							
						
					
					
						commit
						eef8e04a4e
					
				|  | @ -99,12 +99,10 @@ Run the application: | ||||||
| 
 | 
 | ||||||
| .. code-block:: python | .. code-block:: python | ||||||
| 
 | 
 | ||||||
|     import sys |  | ||||||
| 
 |  | ||||||
|     from .application import Application |     from .application import Application | ||||||
|      |      | ||||||
|      |      | ||||||
|     def main(uid, password, photo): |     def main(): | ||||||
|        """Run application.""" |        """Run application.""" | ||||||
|        application = Application() |        application = Application() | ||||||
|        application.config.from_yaml('config.yml') |        application.config.from_yaml('config.yml') | ||||||
|  | @ -117,7 +115,7 @@ Run the application: | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|     if __name__ == '__main__': |     if __name__ == '__main__': | ||||||
|         main(*sys.argv[1:]) |         main() | ||||||
| 
 | 
 | ||||||
| You can find more *Dependency Injector* examples in the ``/examples`` directory | You can find more *Dependency Injector* examples in the ``/examples`` directory | ||||||
| on our GitHub: | on our GitHub: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user