summaryrefslogtreecommitdiff
path: root/libmat2
diff options
context:
space:
mode:
Diffstat (limited to 'libmat2')
-rw-r--r--libmat2/__init__.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/libmat2/__init__.py b/libmat2/__init__.py
index be7067b..1d945d4 100644
--- a/libmat2/__init__.py
+++ b/libmat2/__init__.py
@@ -30,12 +30,12 @@ UNSUPPORTED_EXTENSIONS = {
30 } 30 }
31 31
32DEPENDENCIES = { 32DEPENDENCIES = {
33 'cairo': 'Cairo', 33 'Cairo': 'cairo',
34 'gi': 'PyGobject', 34 'PyGobject': 'gi',
35 'gi.repository.GdkPixbuf': 'GdkPixbuf from PyGobject', 35 'GdkPixbuf from PyGobject': 'gi.repository.GdkPixbuf',
36 'gi.repository.Poppler': 'Poppler from PyGobject', 36 'Poppler from PyGobject': 'gi.repository.Poppler',
37 'gi.repository.GLib': 'GLib from PyGobject', 37 'GLib from PyGobject': 'gi.repository.GLib',
38 'mutagen': 'Mutagen', 38 'Mutagen': 'mutagen',
39 } 39 }
40 40
41 41
@@ -46,11 +46,11 @@ def check_dependencies() -> Dict[str, bool]:
46 ret['Ffmpeg'] = bool(video._get_ffmpeg_path()) 46 ret['Ffmpeg'] = bool(video._get_ffmpeg_path())
47 47
48 for key, value in DEPENDENCIES.items(): 48 for key, value in DEPENDENCIES.items():
49 ret[value] = True 49 ret[key] = True
50 try: 50 try:
51 importlib.import_module(key) 51 importlib.import_module(value)
52 except ImportError: # pragma: no cover 52 except ImportError: # pragma: no cover
53 ret[value] = False # pragma: no cover 53 ret[key] = False # pragma: no cover
54 54
55 return ret 55 return ret
56 56