~martijnbraam/pyatem

pyatem/gtk_switcher/switcher-control.in -rwxr-xr-x 610 bytes
ed164087Martijn Braam i18n: update translation files from source 4 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!@PYTHON@

import os
import sys
import signal
import locale
import gettext

VERSION = '@VERSION@'
pkgdatadir = '@pkgdatadir@'
localedir = '@localedir@'

sys.path.insert(1, pkgdatadir)
signal.signal(signal.SIGINT, signal.SIG_DFL)
locale.bindtextdomain("openswitcher", localedir)
gettext.install("openswitcher", localedir)
locale.textdomain("openswitcher")

if __name__ == '__main__':
    import gi
    from gi.repository import Gio
    resource = Gio.Resource.load(os.path.join(pkgdatadir, 'atem.gresource'))
    resource._register()

    from gtk_switcher import __main__
    sys.exit(__main__.main(VERSION))