0
Commit Graph

7 Commits

Author SHA1 Message Date
Andrew Chin
ed5f3eaad4 Stronger support for setting a background color
Works by setting "bg_color='#rrggbb'" in settings.py.  Works for both
png and jpg imgformats
2011-04-17 14:10:27 -04:00
Andrew Chin
3f62beb1b0 Converted some print statements to logging statments 2011-03-30 20:49:27 -04:00
Andrew Chin
82e0bf53b9 Added a new 'listify' parameter to the config file parser
Specifying listify on an option will cause it to be parsed as a list.
Use listdelim to specify the delimiter (defaults to ',')

Examples, assuming you had the following option:
add_option("--test","test", type="int", listify=True)

Command line:
  --test 1          results in [1]
  --test 1,2,3      results in [1,2,3]

Config file:
  test=1            results in [1]
  test="1,2,3"      results in [1,2,3]
  test=[1,4,9]      results in [1,4,9]
2011-03-25 20:42:05 -04:00
Andrew Chin
6f60439f14 accept callables in the configFile with type="function" 2011-03-20 00:37:34 -04:00
Aaron Griffith
346ee004e8 fixed some things left over from configfile merge 2011-03-19 21:25:04 -04:00
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