© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Pranay Ankit
console.log('hello hashnode');
I have made a telegram bot and I am trying to deploy it on Heroku. The bot uses Spotify API. I don't know how to access those keys when its deployed to Heroku.
P.S: I am new to python
j
stuff ;)
from stack overflow
import os print os.environ['HOME']
stackoverflow.com/questions/4906977/access-enviro…
Thank you☺️
Gergely Polonkai
You have to believe in things that are not true. How else would they become?
Also if you want to be on the safe side, use os.environ.get('HOME', 'A_default_value') so your code doesn’t crash if $HOME is not set.
os.environ.get('HOME', 'A_default_value')
$HOME
j
stuff ;)
from stack overflow
import os print os.environ['HOME']stackoverflow.com/questions/4906977/access-enviro…