view datasets/config.py @ 527:3eb59514b534

bugfix. fix an import bug that I don't understand the cause.
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Mon, 17 Nov 2008 13:16:33 -0500
parents 74b3e65f5f24
children
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/')