From fca3287e9c5c042c044361bd35ceb87287aa843a Mon Sep 17 00:00:00 2001 From: James Hensman Date: Tue, 19 Nov 2013 16:54:07 +0000 Subject: [PATCH] added a path for the data resources. not all users will be working in the GPy directory. --- GPy/util/datasets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPy/util/datasets.py b/GPy/util/datasets.py index f33a2e92..732e2a1b 100644 --- a/GPy/util/datasets.py +++ b/GPy/util/datasets.py @@ -31,7 +31,8 @@ overide_manual_authorize=False neil_url = 'http://staffwww.dcs.shef.ac.uk/people/N.Lawrence/dataset_mirror/' # Read data resources from json file. -json_data=open('data_resources.json').read() +path = os.path.join(os.path.dirname(__file__), 'data_resources.json') +json_data=open(path).read() data_resources = json.loads(json_data)