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]
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