From 794c46969b3995d6922b562fe9e7866982e55a5f Mon Sep 17 00:00:00 2001 From: Disassembler Date: Fri, 3 Apr 2020 20:15:09 +0200 Subject: [PATCH] Make config file name into a definition --- usr/lib/python3.8/spoc/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/lib/python3.8/spoc/config.py b/usr/lib/python3.8/spoc/config.py index 9d0d0ab..81fd9e2 100644 --- a/usr/lib/python3.8/spoc/config.py +++ b/usr/lib/python3.8/spoc/config.py @@ -4,8 +4,10 @@ import configparser import os import urllib.parse +CONFIG_FILE = '/etc/spoc/spoc.conf' + config = configparser.ConfigParser() -config.read('/etc/spoc/spoc.conf') +config.read(CONFIG_FILE) NETWORK_INTERFACE = config.get('general', 'network-interface', fallback='spocbr0')