[wxPython] wxConfig: Linux=works, Win=no_works???

As a prelude to using wxConfig for my application, i wrote a quick
script to parse a windows ini file for another application my script
will run on a windows machine.

i bring the ini file over to linux and run my script, and the ini file
is parsed corectly.

when i run the script under windows, i get nottin. when i poke around
the entry of the first group looks like CLSID ???

has anyone else noticed trouble with windows version?

many thanks

les schaffer

···

=======================
     da script:

from wxPython.utils import *

# i change this for windows work:
base = '/home/godzilla/Engineering/dspring/stoplite/LedTests/PySrc'
iniFile = base + '/' + 'led.ini'

cf = wxConfig( localFilename=iniFile , style=wxCONFIG_USE_LOCAL_FILE)

more, entry, next = cf.GetFirstGroup()
while more:
  print entry
  cf.SetPath('/' + entry )
  moreE, entryE, nextE = cf.GetFirstEntry()
  while moreE:
    print '%s = %s'%(entryE, cf.Read(entryE))
    moreE, entryE, nextE = cf.GetNextEntry(nextE)
  cf.SetPath('../')
  more, entry, next = cf.GetNextGroup(next)

=======================
a piece of the ini file:

[SIZE]
x=0
y=0
cx=705
cy=853
Reopen=0
[FIRST_TIME]
firsttime=0
[SCANS_DIRECTORY]
scansdir=D:\LED\EXPORTS\
[LAST TYPE WINDOW]
windowType=1000

As a prelude to using wxConfig for my application, i wrote a quick
script to parse a windows ini file for another application my script
will run on a windows machine.

i bring the ini file over to linux and run my script, and the ini file
is parsed corectly.

when i run the script under windows, i get nottin. when i poke around
the entry of the first group looks like CLSID ???

On MSW, the wxConfig class uses the registry. To force use of an ini file
you need to use wxFileConfig.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!