33 lines
669 B
Python
Executable File
33 lines
669 B
Python
Executable File
#!/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)
|
|
|
|
gi.require_version('Gio', '2.0') # NOQA
|
|
from gi.repository import Gio
|
|
|
|
|
|
@devel@ # NOQA
|
|
resource = Gio.resource_load(os.fspath(Path('@pkgdatadir@', 'tuhi.gresource')))
|
|
Gio.Resource._register(resource)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import gettext
|
|
import locale
|
|
|
|
locale.bindtextdomain('tuhi', '@localedir@')
|
|
gettext.bindtextdomain('tuhi', '@localedir@')
|
|
|
|
from tuhi.gui.application import main
|
|
main(sys.argv)
|