From 2e111e3ee34cf2464d159f60c59dc2d07a9c53e7 Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Tue, 23 Apr 2024 12:45:08 +0530 Subject: [PATCH] =?UTF-8?q?=E2=8F=B3=20@eshanized=20updated=20the=20reposi?= =?UTF-8?q?tory!!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blackbox/Functions.py | 5 ++++- blackbox/Settings.py | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 blackbox/Settings.py diff --git a/blackbox/Functions.py b/blackbox/Functions.py index 92a5ed2..1e05415 100644 --- a/blackbox/Functions.py +++ b/blackbox/Functions.py @@ -88,4 +88,7 @@ try: except os.error as oserror: print("[ERROR] Exception: %s" % oserror) - sys.exit(1) \ No newline at end of file + sys.exit(1) + +# NOTE: Read Config File dst: $HOME/.config/blackbox/blackbox.yaml +# NOTE: Initiate logger diff --git a/blackbox/Settings.py b/blackbox/Settings.py new file mode 100644 index 0000000..5b167a7 --- /dev/null +++ b/blackbox/Settings.py @@ -0,0 +1,12 @@ +#!/bin/python + +import os +import Functions as fn +import string +from string import Template + +# NOTE: Base Directory +base_dir = os.path.dirname(os.path.realpath(__file__)) + +# NOTE: Deafult Config File +default_file = "%s/defaults/blackbox.yaml"