web3-starter-py/dash_app/wrappers/settings.py
Mia von Steinkirch d32e821bd7 add blerplate
2019-12-17 09:25:46 -08: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')