mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-15 09:51:21 +00:00
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
14 lines
437 B
Python
14 lines
437 B
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
import configparser
|
|
import os
|
|
import pathlib
|
|
|
|
config = configparser.ConfigParser()
|
|
config.read(pathlib.Path(__file__).parent.with_name('config.ini'))
|
|
|
|
config['DEFAULT']['url'] = os.environ.get('FREEDOMBOX_URL',
|
|
config['DEFAULT']['url'])
|
|
config['DEFAULT']['samba_port'] = os.environ.get(
|
|
'FREEDOMBOX_SAMBA_PORT', config['DEFAULT']['samba_port'])
|