[Gajim-devel] Embedding Gajim

Phil Wilson gajim at philwilson.org
Tue Oct 7 00:47:43 CEST 2008


Hi,

>> Don't hesitate to ask more info

OK then ;)

As soon as I do something like:

import gajim.idlequeue
gajim.idlequeue = idlequeue.IdleQueue()

then the atexit code gets registered like this:

import atexit
atexit.register(on_exit)

but I don't want this to happen. Is there another way of importing the
idlequeue or initialising it that doesn't trigger this event? Like I
said before, Python is reasonably new to me and I'm not totally sure I
understand the way packages and objects are referenced.

I was looking to build my code on top of gajim with no modifications -
if that turns out to be impossible due to it being too closely tied to
the interface I'll just write my own.

Cheers,

Phil Wilson


More information about the Gajim-devel mailing list