2009-12-14 21:38:07 |
Brad Crittenden |
description |
There are a few places site-wide initialization can be done, such as in lib/site.py or in the [scripts] portion of buildout.cfg. The former has been demonstrated to cause some undesirable (and as yet unexplained) behavior while the former seems to work very well, though is non-standard and not very discoverable.
It would be best to have a single, well-known, discoverable initialization entry point. This entry point will likely be called by one of the other methods but will be a cleaner place for developers to put initialization code. |
There are a few places site-wide initialization can be done, such as in lib/site.py or in the [scripts] portion of buildout.cfg. The former has been demonstrated to cause some undesirable (and as yet unexplained) behavior while the latter seems to work very well, though is non-standard and not very discoverable.
It would be best to have a single, well-known, discoverable initialization entry point. This entry point will likely be called by one of the other methods but will be a cleaner place for developers to put initialization code.
|
|