diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..03f620a --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +PYPACKET_USERNAME= +PYPACKET_PASSWORD= \ No newline at end of file diff --git a/main.py b/main.py index df9b3f1..60962c0 100755 --- a/main.py +++ b/main.py @@ -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 + """ ___ ___ _ _ @@ -16,6 +17,9 @@ |__/ """ + Colors.RESET) +# Load envs +load_dotenv() + # Configure logging. log_handler = Logger() diff --git a/requirements.txt b/requirements.txt index bd0b620..4235c2c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 \ No newline at end of file +terminaltables==3.1.0 +python-dotenv==0.13.0 \ No newline at end of file