Init the datastore on demand
Right now is not possible do "from sugar3.datastore import datastore" outside of GLib loop, because the import try to connect to a DBus signal, and throw a exception. That was not a problem in Sugar, because we always have a Glib loop on all our activities, but is a problem when we want import the classes to generate docs with pydoc. Many other classes import datastore, then this is a blocker. This patch removes the initialization when imported, will be done when needed.master
parent
9314fd89fa
commit
84ad1b84cc
Loading…
Reference in New Issue