From 64a6fdca2d648eae32dd7729d82ed147e019624b Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Wed, 13 Oct 2021 11:17:39 -0400 Subject: [PATCH] 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 --- emmental.py | 3 --- lib/__init__.py | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/emmental.py b/emmental.py index a0f4745..a609b3d 100755 --- a/emmental.py +++ b/emmental.py @@ -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() diff --git a/lib/__init__.py b/lib/__init__.py index 4b0daed..0dfea45 100644 --- a/lib/__init__.py +++ b/lib/__init__.py @@ -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