wxConfig enumeration bug?

Hi all,

wxPython 2.4.0.2u on python 2.2.1 on win2K.

I'm trying to enumerate over the groups in a wxConfig (which is stored in
the registry). The following code works as expected and returns the groups
in HKEY_CURRENT_USER\Software\myCompany\myProduct. However, if I uncomment
either of the commented line then the wxConfig class seems to 'change
directory' into HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ and enumerate from
there.

Is this a bug?

== code ==

from wxPython.wx import *

config = wxConfig("myProduct", "myCompany")
#config.HasGroup("anythingHere")
#config.SetPath("/")
(thereIsMore,value,cookie) = config.GetFirstGroup()
while thereIsMore:
    print value
    (thereIsMore,value,cookie) = config.GetNextGroup(cookie)

== code ==

Thanks,

Rich