#!/usr/bin/python3

import sys

# get a path to our private module, and make sure it overrides
# all other paths (This is probably Debian specific)
sys.path.insert(0, '/usr/share/smart-notifier')

if '--notify' in sys.argv:
    import smart_notifier
    smart_notifier.notify(sys.stdin.read())
else:
    import smart_notifier.gui
    smart_notifier.gui.service()
