How to read in environment variables from environment files that uses colons instead of equal signs?

  Kiến thức lập trình

I would like to load an environment file that uses colons instead of equal signs like the example below. Unforunately, I cannot change the format.

Env_var1: 123
Env_var2: TestVal

I tried using python-loadenv, but it seems like it doesn’t work with this format. Are there any solutions to this?

1

LEAVE A COMMENT