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:
parent
584e8ecc05
commit
64a6fdca2d
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue