On Mon, Nov 01, 1999 at 09:29:15PM -0500, Edward Muller wrote:
> 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")) == "No
If the gnome_config key does not exist, None is returned (that is the None
object -- not the string "None"). This is equivalent to the C NULL
constant. You should be able to use one of:
if gnome.config.get_string("/App/Section/Setting") == None:
if not gnome.config.get_string("/App/Section/Sett
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