view pylearn/datasets/config.py @ 602:28f7dc848efc

fixed flickr relpath mistake
author James Bergstra <bergstrj@iro.umontreal.ca>
date Wed, 14 Jan 2009 17:22:23 -0500
parents b054271b2504
children d3d8f5a17909
line wrap: on
line source

"""Configuration options for datasets


Especially, the locations of data files.
"""

import os
def env_get(key, default):
    return default if os.getenv(key) is None else os.getenv(key)

def data_root():
    return env_get('PYLEARN_DATA_ROOT', '/u/bergstrj/pub/data/')