--
You've written a function that reads the environmental data and returns a dictionary. There is already a built-in function for that purpose:
```
from dotenv import dotenv_values
config = dotenv_values(".env")
```
From the manual.
--
You've written a function that reads the environmental data and returns a dictionary. There is already a built-in function for that purpose:
```
from dotenv import dotenv_values
config = dotenv_values(".env")
```
From the manual.
Data Scientist and Chartered Aeronautical Engineer (MEng CEng EUR ING MRAeS) with over 15 years experience in the Aerospace, Defence and Rail Industry.