Make config file name into a definition
This commit is contained in:
parent
7dd02f0e2a
commit
794c46969b
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user