added a path for the data resources. not all users will be working in the GPy directory.

This commit is contained in:
James Hensman 2013-11-19 16:54:07 +00:00
parent 5f3b6bd204
commit fca3287e9c

View file

@ -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)