mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +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 configparser
|
||||||
import os
|
import os
|
||||||
|
import pathlib
|
||||||
|
|
||||||
config = configparser.ConfigParser()
|
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'] = os.environ.get('FREEDOMBOX_URL',
|
||||||
config['DEFAULT']['url'])
|
config['DEFAULT']['url'])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user