File: smart-notifier

package info (click to toggle)
smart-notifier 0.28-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 288 kB
  • sloc: xml: 103; python: 81; makefile: 30; sh: 21
file content (14 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/python

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()