-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Phillip Oldham wrote:
> Not sure if this is the right place to post feature requests (the plope 
> collector seems to still have outstanding tickets from 2006).
> 
> It would be really handy if it were possible to define custom variables 
> for use in the config files. For instance:
> 
> [environment]
> basepath=/var/www
> project1=/mysite
> project2=/othersite
> 
> [program:mysite_wsgi]
> directory=%(basepath)s%(project1)s
> 
> [program:othersite_wsgi]
> directory=%(basepath)s%(project2)s
> 
> [program:randomsite_wsgi]
> directory=%(basepath)s/random

supervisor/options.py defines an 'UnhosedConfigParser' which derives
from the 'RawConfigParser' in the stdlib 'ConfigParser' module, and
therefore omits any of the variable expansion code.  If it derived from
'ConfigParser' instead, then you could get what you want by adding a
'[DEFAULTS]' section to your config file.  I'm assuming, from its name,
that the choice to use RawConfigParser was deliberate.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          [email protected]
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkrgjHgACgkQ+gerLs4ltQ5YZgCfZEtLxGtxOxh331e17Y6OP3ty
w9wAoMcVKvuraynHqSnUUZulRsTO6XTj
=lS9M
-----END PGP SIGNATURE-----
_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to