spyce
home
license
community
download
examples
resources
wishlist
contrib (@sf)
documentation
intro
lang
runtime
modules
tags
install
exits
sourceforge
statistics
freshmeat

Documentation - Runtime
[[ Spyce ]]
Python Server Pages
by Rimon Barr

Prev: 3.6.2 - path Up: 3.6 - Configuration Next: 3.6.4 - error

3.6.3. import

The import option specifies Python modules (not Spyce modules) that should be loaded (i.e. imported) at server startup. This can be useful to perform initialization at server startup. Using the pool module is prefered for storing long-lived values. The string for this option is a comma-separated list of Python module names. In CGI-mode, the Spyce engine is restarted on each request, so these modules will be loaded on each request. For other configurations, the import is performed once. To use this module, you will still need to import the module in your Spyce modules or Spyce files, but it will be taken from the Python module cache.


Prev: 3.6.2 - path Up: 3.6 - Configuration Next: 3.6.4 - error


© 2002-08 Rimon Barr
email: rimon@acm.org
Spyce Powered SourceForge Logo [[ Spyce ]]
Python Server Pages
version 1.3.13