2017-03-16 09:27:55 -05:00
|
|
|
##########################################################################
|
2016-04-17 09:39:08 -05:00
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
2024-01-01 02:43:48 -06:00
|
|
|
# Copyright (C) 2013 - 2024, The pgAdmin Development Team
|
2016-04-17 09:39:08 -05:00
|
|
|
# This software is released under the PostgreSQL Licence
|
|
|
|
#
|
2017-03-16 09:27:55 -05:00
|
|
|
##########################################################################
|
2016-04-17 09:39:08 -05:00
|
|
|
|
|
|
|
import json
|
|
|
|
import os
|
|
|
|
|
2016-09-14 10:26:12 -05:00
|
|
|
|
2016-07-18 08:50:21 -05:00
|
|
|
CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
|
2016-04-17 09:39:08 -05:00
|
|
|
|
2016-08-09 10:05:40 -05:00
|
|
|
try:
|
|
|
|
with open(CURRENT_PATH + '/test_config.json') as data_file:
|
|
|
|
config_data = json.load(data_file)
|
2016-09-22 06:58:38 -05:00
|
|
|
except Exception as exception:
|
2016-08-09 10:05:40 -05:00
|
|
|
with open(CURRENT_PATH + '/test_config.json.in') as data_file:
|
|
|
|
config_data = json.load(data_file)
|