localwiki/localwiki — pull request #327 by niran (2012-08-24 23:01:48+00:00)
Title: Allow hardcoded settings to be overridden by environment variables

Writing and reading data from a directory (`DATA_ROOT`) based on where python data files are feels weird, and is impossible to change unless one is comfortable monkey-patching `sys.prefix`. This keeps the same default setting, but allows it to be overridden by an environment variable. For good measure, `PROJECT_ROOT` received the same treatment.