Tạ Bích Hạnh
Member
How do I see Python environment variables?
Answer
To set and get environment variables in Python you can just use the os module:
import os # Set environment variables os.
environ[‘API_USER’] = ‘username’ os
. environ[‘API_PASSWORD’] = ‘secret’ # Get environment variables USER = os.
Answer
To set and get environment variables in Python you can just use the os module:
import os # Set environment variables os.
environ[‘API_USER’] = ‘username’ os
. environ[‘API_PASSWORD’] = ‘secret’ # Get environment variables USER = os.