mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
tests: Read functional tests conf file without assuming CWD
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
b66b15591e
commit
0e2315486d
@ -17,9 +17,10 @@
|
||||
|
||||
import configparser
|
||||
import os
|
||||
import pathlib
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
config.read('config.ini')
|
||||
config.read(pathlib.Path(__file__).parent.with_name('config.ini'))
|
||||
|
||||
config['DEFAULT']['url'] = os.environ.get('FREEDOMBOX_URL',
|
||||
config['DEFAULT']['url'])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user