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?
Sur cette page du site, vous pouvez voir la vidéo en ligne [SOLVED] python getenv returns None durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Free Python Code 06 September 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,212 fois et il a aimé 17 téléspectateurs. Bon visionnage!