tuhi/tuhi-gui.in

33 lines
669 B
Plaintext
Raw Normal View History

#!/usr/bin/env python3
import gi
import sys
import os
from pathlib import Path
try:
# 3.30 is the first one with Gtk.Template
gi.check_version('3.30') # NOQA
except ValueError as e:
print(e, file=sys.stderr)
sys.exit(1)
2019-08-13 04:53:26 +02:00
gi.require_version('Gio', '2.0') # NOQA
from gi.repository import Gio
2019-08-13 04:53:26 +02:00
@devel@ # NOQA
resource = Gio.resource_load(os.fspath(Path('@pkgdatadir@', 'tuhi.gresource')))
Gio.Resource._register(resource)
2019-08-13 04:53:26 +02:00
if __name__ == "__main__":
import gettext
import locale
locale.bindtextdomain('tuhi', '@localedir@')
gettext.bindtextdomain('tuhi', '@localedir@')
from tuhi.gui.application import main
main(sys.argv)