I'm trying to keep my token in an enviroment variable, so I created the file .env, and I stored the TOKEN there:
TOKEN=XXX
When I run my .py file, I can't get the enviroment variable TOKEN, it keeps printing 'None'.
import os
token = os.environ.get("TOKEN")
print(token)