summaryrefslogtreecommitdiff
path: root/iot_barcode_scanner/config.py
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2020-10-29 12:11:32 +0100
committerxengineering <mail2xengineering@protonmail.com>2020-10-29 12:15:46 +0100
commit84b9ddcc2905f5d8667cfef1359b724c23d27365 (patch)
tree4e5a4c9ba39d8ec8c1a63a2bda4d7e9fc402ae40 /iot_barcode_scanner/config.py
parent56503ecf9bccd9a318142e2946f84e5f57be5eeb (diff)
downloadiot-barcode-scanner-84b9ddcc2905f5d8667cfef1359b724c23d27365.tar
iot-barcode-scanner-84b9ddcc2905f5d8667cfef1359b724c23d27365.tar.zst
iot-barcode-scanner-84b9ddcc2905f5d8667cfef1359b724c23d27365.zip
Setup basic Systemd Units
Diffstat (limited to 'iot_barcode_scanner/config.py')
-rw-r--r--iot_barcode_scanner/config.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/iot_barcode_scanner/config.py b/iot_barcode_scanner/config.py
deleted file mode 100644
index 6b83393..0000000
--- a/iot_barcode_scanner/config.py
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-"""Module to read the Configuration File for the Service"""
-
-
-import sys
-import json
-from iot_barcode_scanner.static import CONFIG_PATH
-
-
-def get_config():
- """Read Config File and return it as Python Object"""
-
- try:
- with open(CONFIG_PATH, "r") as config_file:
- text = config_file.read()
- except FileNotFoundError:
- print("Config file does not exist.")
- sys.exit(1)
-
- data = json.loads(text)
-
- return data