~ubuntu-branches/ubuntu/oneiric/alarm-clock/oneiric

« back to all changes in this revision

Viewing changes to alarm-clock.py

  • Committer: Bazaar Package Importer
  • Author(s): Marco Rodrigues
  • Date: 2008-06-17 16:55:35 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080617165535-nrhameughouqapk4
Tags: 0.9.6-1
* New upstream version.
  + Add version.py to debian/install.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import locale
21
21
from gettext import gettext as _
22
22
import sys
 
23
import version
 
24
import os.path
 
25
import os
23
26
 
24
27
locale.setlocale(locale.LC_ALL, '')
25
28
gettext.textdomain('pyalarm')
26
 
gettext.bindtextdomain('pyalarm', "/usr/share/locale")
 
29
gettext.bindtextdomain('pyalarm', "%s/locale" % os.path.split(os.getcwd())[0])
 
30
 
 
31
 
27
32
 
28
33
try:
29
34
        Argument = sys.argv[1]
46
51
                print "\n"
47
52
                Parsed = True
48
53
        if Argument == "-v" or Argument == "--version":
49
 
                print _("Alarm Clock version %s") % "0.9.4"
 
54
                print _("Alarm Clock version %s") % version.get_version()
50
55
                Parsed = True
51
56
        if Argument == "-t" or Argument == "--tray":
52
57
                import pyalarm