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?
En esta página del sitio puede ver el video en línea [SOLVED] python getenv returns None de Duración hora minuto segunda en buena calidad , que subió el usuario Free Python Code 06 September 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,212 veces y le gustó 17 a los espectadores. Disfruta viendo!