[SOLVED] python getenv returns None

Publicado em: 06 September 2023
no canal de: Free Python Code
1,212
17

https://pypi.org/project/python-dotenv/

--------------------------------------
I can't seem to get my code to respond to custom environment variables so I wrote a piece of code to test it. os.getenv is not pulling the environment variables that I've set in BASH into my Python code.
--------------------------
os.getenv('X') returns none
I have followed everything on the guide and it still returns none no matter what I do.
-------------------
os.environ.get('X') returns None
os.getenv('X') returns None

Is there anything beyond what is in the guide that I can try?


Nesta página do site você pode assistir ao vídeo on-line [SOLVED] python getenv returns None duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Free Python Code 06 September 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,212 vezes e gostou 17 espectadores. Boa visualização!