Mercurial > pylearn
view datasets/config.py @ 509:6fe692b93b69
added shapeset1
author | James Bergstra <bergstrj@iro.umontreal.ca> |
---|---|
date | Thu, 30 Oct 2008 11:27:04 -0400 |
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/')