0
Commit Graph

2 Commits

Author SHA1 Message Date
Andrew Chin
f46d0ce4ad options with default args are now seeded in the globals dict 2011-01-22 14:23:20 -05:00
Andrew Chin
e989e97c5e Added a new config file parser.
The new config file parser has an interface that's nearly identical to
the OptionParser of optparse.

Below is a sample settings.py config file:

$ cat settings.py
import multiprocessing

if 'rendermode' not in locals():
    rendermode="lighting"

cachedir = "cache.%s.cachedir" % rendermode

procs = multiprocessing.cpu_count() - 1
2010-12-31 00:53:57 -05:00