Setting and getting global preferences is done with the following functions:
Set global preferences for Brian
Usage:
``set_global_preferences(...)``
where ... is a list of keyword assignments.
Get the value of the named global preference
If you have a module named brian_global_config anywhere on your Python path, Brian will attempt to import it to define global preferences. For example, to automatically enable weave compilation for all your Brian projects, create a file brian_global_config.py somewhere in the Python path with the following contents:
from brian.globalprefs import *
set_global_preferences(useweave=True)
The following global preferences have been defined: