~ubuntu-branches/ubuntu/maverick/smart-notifier/maverick

« back to all changes in this revision

Viewing changes to scripts/smart-notifier

  • Committer: Bazaar Package Importer
  • Author(s): Brian Sutherland
  • Date: 2006-04-03 17:38:26 UTC
  • mfrom: (3 dapper)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20060403173826-zf7lh9w41latwb62
Tags: upstream-0.25
ImportĀ upstreamĀ versionĀ 0.25

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python2.3
 
1
#!/usr/bin/python2.4
2
2
 
3
3
import sys
4
4
 
5
5
sys.path.append('/usr/share/smart-notifier')
6
 
import smart_notifier
7
6
 
8
7
if '--notify' in sys.argv:
 
8
    import smart_notifier
9
9
    smart_notifier.notify(sys.stdin.read())
10
10
else:
11
 
    smart_notifier.service()
 
11
    import smart_notifier.gui
 
12
    smart_notifier.gui.service()