I tried the following code but when I opened my env file it was still empty.
import os
from os.path import join, dirname
from dotenv import load_dotenv
dotenv_path = join(dirname(__file__), '.env')
load_dotenv(dotenv_path)
os.environ['ORI'] = '123'