nolith / avahiserve

Avahi mercurial extension. Works only on Linux.

Clone this repository (size: 23.4 KB): HTTPS / SSH
$ hg clone http://code.l0g.in/avahiserve

Changed (Δ86 bytes):

raw changeset »

avahiserve.py (4 lines added, 0 lines removed)

Up to file-list avahiserve.py:

@@ -8,6 +8,8 @@ import gobject
8
8
import avahi
9
9
from dbus.mainloop.glib import DBusGMainLoop
10
10
11
VERSION='0.1.0'
12
11
13
class AvahiReg:
12
14
13
15
	def __init__(self, name, port):
@@ -83,6 +85,8 @@ class AvahiReg:
83
85
			return
84
86
85
87
	def start(self):
88
		if self.verbose:
89
			print "Starting avahiserve version " + VERSION
86
90
		DBusGMainLoop( set_as_default=True )
87
91
		self.bus = dbus.SystemBus()
88
92