27 lines
915 B
Python
27 lines
915 B
Python
|
# Copyright 2022 (c) Anna Schumaker.
|
||
|
"""Set up GObject Introspection."""
|
||
|
import sys
|
||
|
import gi
|
||
|
|
||
|
gi.require_version("Gtk", "4.0")
|
||
|
gi.require_version("Adw", "1")
|
||
|
|
||
|
DEBUG_STR = "-debug" if __debug__ else ""
|
||
|
APPLICATION_ID = f"com.nowheycreamery.emmental{DEBUG_STR}"
|
||
|
|
||
|
|
||
|
def __print_version(subsystem, major, minor, micro):
|
||
|
print(f" ⋅ {subsystem} {major}.{minor}.{micro}")
|
||
|
|
||
|
|
||
|
def print_versions():
|
||
|
"""Print version information for libraries we use."""
|
||
|
__print_version("Python", sys.version_info.major, sys.version_info.minor,
|
||
|
sys.version_info.micro)
|
||
|
__print_version("Gtk", gi.repository.Gtk.MAJOR_VERSION,
|
||
|
gi.repository.Gtk.MINOR_VERSION,
|
||
|
gi.repository.Gtk.MICRO_VERSION)
|
||
|
__print_version("Libadwaita", gi.repository.Adw.MAJOR_VERSION,
|
||
|
gi.repository.Adw.MINOR_VERSION,
|
||
|
gi.repository.Adw.MICRO_VERSION)
|