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:
Sunil Mohan Adapa authored and James Valleroy committed 2019-03-10 09:54:07 -04:00
1 parent b66b15591e
commit 0e2315486d
1 file changed
+2 -1
+2 -1
View File
@@ -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'])