lib: Import and configure the gi module

lib needs Gtk for some of its widgets, so do the import here to make
sure everything is configured properly. This prevents some warnings at
the very beginning of testing as well.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2021-10-13 11:17:39 -04:00
parent 584e8ecc05
commit 64a6fdca2d
2 changed files with 4 additions and 3 deletions

View File

@ -1,8 +1,5 @@
#!/usr/bin/python
# Copyright 2021 (c) Anna Schumaker.
import gi
gi.require_version('Gtk', '4.0')
import lib
import tagdb
lib.settings.load()

View File

@ -1,4 +1,8 @@
# Copyright 2020 (c) Anna Schumaker.
import gi
gi.require_version("Gtk", "4.0")
gi.require_version("Gst", "1.0")
from . import bus
from . import data
from . import publisher