470,648 Members | 1,381 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,648 developers. It's quick & easy.

Reading config.ini in PythonWin.

1
Hi,

I am new in Python Forum and quite new in Python programming as well. I
am working mainly with GIS and using Esri's geoprocessing tools.

I want to use .ini file to set the parameters, especially paths, in my
project. PythonWin 2.1. is my version. Windows is XP.

Why do I get the default back in the case below? Any way around?

The Paths,Temp is c:/temp.

>>> win32ui.SetProfileFileName('D:\\config.ini')
>>> Temp = win32ui.GetProfileVal('Paths','Temp','c:/')
>>> print Temp
c:/
>>>

W.
Sep 4 '06 #1
0 1876

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Moth | last post: by
4 posts views Thread by Jon Maz | last post: by
2 posts views Thread by jassi | last post: by
3 posts views Thread by SÝren M. Olesen | last post: by
1 post views Thread by Vesa Leppanen | last post: by
1 post views Thread by M Irfan | last post: by
reply views Thread by warner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.