web3-starter-py/boilerplates-dash/wrappers/settings.py
2022-03-23 18:32:49 +04:00

12 lines
No EOL
220 B
Python

# Load all env variables from .env file
import os
from dotenv import load_dotenv
from pathlib import Path
env_path = Path('.') / '.env'
load_dotenv(dotenv_path=env_path)
# General constants
PORT = os.getenv('PORT')