Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit c6a8488

Browse files
committed
add support for using dotenv
1 parent e898145 commit c6a8488

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/.env
12
config
23
*.pyc
34
*~

highfive/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from .payload import Payload
55

66
import click
7+
import dotenv
78
import flask
89
import waitress
910

@@ -42,4 +43,5 @@ def cli(port):
4243

4344

4445
def main():
46+
dotenv.load_dotenv()
4547
cli(auto_envvar_prefix='HIGHFIVE')

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
install_requires = [
1616
'click',
1717
'flask',
18+
'python-dotenv',
1819
'waitress',
1920
],
2021
entry_points = {

0 commit comments

Comments
 (0)