Files
pgadmin4/web/regression/test_setup.py
T

22 lines
640 B
Python
Raw Normal View History

2017-03-16 14:27:55 +00:00
##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
2021-01-04 15:34:45 +05:30
# Copyright (C) 2013 - 2021, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
2017-03-16 14:27:55 +00:00
##########################################################################
import json
import os
2016-07-18 14:50:21 +01:00
CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
2016-08-09 16:05:40 +01:00
try:
with open(CURRENT_PATH + '/test_config.json') as data_file:
config_data = json.load(data_file)
except Exception as exception:
2016-08-09 16:05:40 +01:00
with open(CURRENT_PATH + '/test_config.json.in') as data_file:
config_data = json.load(data_file)