Skip to content

Commit

Permalink
Add .env (#36)
Browse files Browse the repository at this point in the history
Co-authored-by: Michał <m.leniec@o2.pl>
  • Loading branch information
borsuk85 and Michał authored May 6, 2020
1 parent 485ad87 commit fc1f1c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PYPACKET_USERNAME=
PYPACKET_PASSWORD=
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from pypacket.base.deserialization import Deserialization
from pypacket.base.configuration import Configuration
from pypacket.util.colors import Colors
from dotenv import load_dotenv

print(Colors.GREEN + """
___ ___ _ _
Expand All @@ -16,6 +17,9 @@
|__/
""" + Colors.RESET)

# Load envs
load_dotenv()

# Configure logging.
log_handler = Logger()

Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ aprslib==0.6.47
coveralls==2.0.0
pytest==5.4.1
pytest-cov==2.8.1
terminaltables==3.1.0
terminaltables==3.1.0
python-dotenv==0.13.0

0 comments on commit fc1f1c2

Please # to comment.