Read INI-File

Werner Schiendl ws-news at gmx.at
Tue Feb 27 10:43:51 EST 2001


Marc Vollmer <marc.vollmer at mahr.de> wrote in message
news:97ggqk$p53ii$1 at ID-59219.news.dfncis.de...
> No chance:
>
> I try:
>
> win32ui.SetProfileFileName('c:\winnt\test.ini')

If you _really_ wrote it this way it will not work.
The backslashes are used to escape the values.

Use    'c:\\winnt\\test.ini'
or    r'c:\winnt\test.ini'

hth
werner





More information about the Python-list mailing list