mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
14 lines
474 B
Python
14 lines
474 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'])
|