~nataliabidart/magicicada-client/fix-travis-ubuntuone-clientdefs

« back to all changes in this revision

Viewing changes to contrib/dbus_util.py

  • Committer: Natalia
  • Date: 2018-05-19 20:44:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1445.
  • Revision ID: natalia.bidart@ubuntu.com-20180519204454-fliiqyexj67r7fp9
- Rename python package to magicicadaclient.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
SRCDIR = os.environ.get('SRCDIR', os.getcwd())
39
39
 
 
40
 
40
41
class DBusLaunchError(Exception):
41
42
    """Error while launching dbus-daemon"""
42
43
    pass
43
44
 
 
45
 
44
46
class NotFoundError(Exception):
45
47
    """Not found error"""
46
48
    pass
85
87
        del os.environ["DBUS_SESSION_BUS_ADDRESS"]
86
88
        os.kill(self.dbus_pid, signal.SIGKILL)
87
89
        self.running = False
88