I have my ~/.bashrc file:
PATH=$PATH:/usr/pgsql-9.3/bin/
DB_USER=postgres
DB_PASSWORD=password
DB_HOST=localhost
When I'm doing os.environ['PATH'] I get :
/usr/local/sbin
But when I'm doing os.environ['DB_USER'] I get:
KeyError: 'DB_USER'
How I need to declare my vars correctly for python, cause echo in shell :
echo $DB_USER
>>> postgres
thanx