Testing modification for ReadTheDocs to stop docstring errors

This commit is contained in:
James McMurray 2013-12-11 13:27:54 +01:00
parent 45f76cc532
commit 4f3e9f2bf7

View file

@ -30,6 +30,9 @@ overide_manual_authorize=False
neil_url = 'http://staffwww.dcs.shef.ac.uk/people/N.Lawrence/dataset_mirror/'
# Read data resources from json file.
# Don't do this when ReadTheDocs is scanning as it breaks things
on_rtd = os.environ.get('READTHEDOCS', None) == 'True' #Checks if RTD is scanning
if not (on_rtd):
path = os.path.join(os.path.dirname(__file__), 'data_resources.json')
json_data=open(path).read()
data_resources = json.loads(json_data)