I have a shell script which is calling the python script
#!/bin/bash
sudo python test.py
test.py is accessing some environment variable
os.getenv('MYKEY')
I get None when python script is being called from shell script. However it works fine if test.py is executed directly from the shell.
Please help
 
     
     
     
    