On 10/1/07, Andrew Schaeffer <[EMAIL PROTECTED]> wrote:
> Use .NET app.config file.
Thanks for this Andrew. Works well for read-only stuff.
Limitation for me is the need for a exe. To get the following example
to work you need a ipy.exe.config
IronPython console: IronPython 2.0A4 (2.0.10904.02) on .NET 2.0.50727.312
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import clr
>>> clr.AddReference("System.Configuration")
>>> from System.Configuration import *
>>> print ConfigurationManager.AppSettings["Title"]
Watcher
Cheers,
Davy
--
Davy Mitchell
Blog - http://www.latedecember.co.uk/sites/personal/davy/
Twitter - http://twitter.com/daftspaniel
Skype - daftspaniel
needgod.com
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com