Reading config.ini in PythonWin.
Vesa Leppanen
wleppanen at gmail.com
Mon Sep 4 04:22:11 EDT 2006
Hi,
I am new in python-list 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.
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:/
>>>
--
I saw one old thread but didn't se any solution there.
W.
More information about the Python-list
mailing list