Jul 4, 2022
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.
CTO, Data Scientist & Chartered Engineer (MEng CEng EUR ING MRAeS) with over 20 years experience in the Aerospace, Rail & Energy Industry.