mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-17 14:10:21 -04:00
12 lines
No EOL
220 B
Python
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') |