I just tried something like this:
if gnome.config.get_string("/App/Section/Setting") == "None":
writedefaults()
it didn't work.
this did:
if str(gnome.config.get_string("/App/Section/Setting")) == "None":
writedefaults()
I had to cast the return from gnome.config.get_string as a string to
make it work.
So it brings up the question of what type does gnome.config.get_string
return....I checked the gnome.config source code and all it is doing is:
def get_string(path):
return _gnome.gnome_config_get_string(path)
so it is just returning the results of the C call then? but what type?
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]