Improve how we're checking for dependencies
Because apparently, we're doing something wrong:
$ ./mat2 -c
Dependencies required for MAT2 0.2.0:
- Cairo: yes
- Exiftool: yes
- GLib from PyGobject: yes
- GdkPixbuf from PyGobject: yes
- Mutagen: yes
- Poppler from PyGobject: yes
- PyGobject: yes
$ ./mat2 /media/xxx/yyy/zzz/*.JPG
Traceback (most recent call last):
File "./mat2", line 138, in <module>
sys.exit(main())
File "./mat2", line 134, in main
ret = list(p.imap_unordered(clean_meta, list(l)))
File "/usr/lib/python3.6/multiprocessing/pool.py", line 735, in next
raise value
multiprocessing.pool.MaybeEncodingError: Error sending result: '<multiprocessing.pool.ExceptionWithTraceback object at 0x7ff9e571d128>'. Reason: 'PicklingError("Can't pickle <class 'GLib.GError'>: import of module 'GLib' failed",)