Make config file name into a definition

This commit is contained in:
Disassembler 2020-04-03 20:15:09 +02:00
parent 7dd02f0e2a
commit 794c46969b
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -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')