From 47a061f37711548784da63e8acb0a16a31a61493 Mon Sep 17 00:00:00 2001 From: Alexander Werner Date: Sun, 4 Nov 2018 22:26:06 +0100 Subject: [PATCH] updated const.py --- carom/const.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/carom/const.py b/carom/const.py index 7e7b2df..65f27f6 100644 --- a/carom/const.py +++ b/carom/const.py @@ -1,2 +1,8 @@ +import os + AVAILABLE_PINS = range(0, 28) """Pins available for Configuration""" +DEFAULT_CONFIGFILE = os.path.abspath(os.path.join(os.path.dirname(__file__), "client.ini")) +"""Default configfile, that is used as a Fallback if no other configuration exists.""" +CONFIG_FILES = ('~/.config/carom/client.ini', '/etc/carom/client.ini', DEFAULT_CONFIGFILE) +"""Order of resolution of Config Files. Files are tried in order, first one found is used."""