[python-win32] ini File Management with win32ui
John Hopkins
john@hopkinsit.com
Sat, 11 Aug 2001 19:38:02 -0700
This is a multi-part message in MIME format.
------=_NextPart_000_0063_01C1229D.222C4120
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I need to manage an ini file on Win2k and NT4. After reading in the archiv=
es and the documentation I tried to use ConfigParser with the followinfg re=
sults:=0D
=0D
>>> import ConfigParser=0D
>>> p =3D ConfigParser.ConfigParser()=0D
Traceback (most recent call last):=0D
File "<interactive input>", line 1, in ?=0D
TypeError: object is not callable: <module 'ConfigParser' from 'ConfigParse=
r.py'>=0D
=0D
According to PythonWin's About box, I'm using ActivePython build 2.1.211.=
=0D
=0D
Any help will be greatly appreciated.=0D
=0D
Thanks in advance,=0D
=0D
John=0D
=0D
------=_NextPart_000_0063_01C1229D.222C4120
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">=0D
<HTML><HEAD>=0D
<META content=3D"text/html; charset=3Diso-8859-1" http-equiv=3DContent-Type=
>=0D
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>=0D
<STYLE></STYLE>=0D
</HEAD>=0D
<BODY bgColor=3D#ffffff>=0D
<DIV><FONT face=3DArial size=3D2>I need to manage an ini file on Win2k and =
=0D
NT4. After reading in the archives and the documentation I tried to =
=0D
use ConfigParser with the followinfg results:</FONT></DIV>=0D
<DIV> </DIV>=0D
<DIV><FONT face=3DArial size=3D2>>>> import ConfigParser<BR>>&g=
t;> p =0D
=3D ConfigParser.ConfigParser()<BR>Traceback (most recent call last):<BR>&n=
bsp; =0D
File "<interactive input>", line 1, in ?<BR>TypeError: object is not =
=0D
callable: <module 'ConfigParser' from 'ConfigParser.py'><BR></FONT></=
DIV>=0D
<DIV><FONT face=3DArial size=3D2>According to PythonWin's About box, I'm us=
ing =0D
ActivePython build 2.1.211.</FONT></DIV>=0D
<DIV><FONT face=3DArial size=3D2> </DIV></FONT>=0D
<DIV><FONT face=3DArial size=3D2>Any help will be greatly appreciated.</FON=
T></DIV>=0D
<DIV> </DIV>=0D
<DIV><FONT face=3DArial size=3D2>Thanks in advance,</FONT></DIV>=0D
<DIV> </DIV>=0D
<DIV><FONT face=3DArial size=3D2>John</FONT></DIV>=0D
<DIV> </DIV></BODY></HTML>=0D
------=_NextPart_000_0063_01C1229D.222C4120--
_______________________________________________
ActivePython mailing list
ActivePython@listserv.ActiveState.com
http://listserv.ActiveState.com/mailman/listinfo/activepython