summaryrefslogtreecommitdiff
path: root/portato/plugins/dbus_init.py
blob: 653af31a483bbbeda5f56fd75dd3bf35c7c5d75e (plain)
1
2
3
4
5
6
7
8
9
10
try:
	from dbus.mainloop.glib import threads_init
except ImportError:
	threads_init = None

from portato.constants import USE_CATAPULT

def dbus_init (*args):
	if USE_CATAPULT and threads_init is not None:
		threads_init()