summarylogtreecommitdiffstats
path: root/01-specify-gi-versions.patch
blob: 52be64d3ef447b42a5ac36f3339ce97ef474fdd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff -u -r a/macrofusion.py b/macrofusion.py
--- a/macrofusion.py	2015-10-25 12:50:10.678720912 +0100
+++ b/macrofusion.py	2015-10-25 12:50:56.232888991 +0100
@@ -17,6 +17,11 @@
     import operator
     import cairo
     import random
+    
+    import gi
+    gi.require_version('Gdk', '3.0')
+    gi.require_version('Gtk', '3.0')
+    gi.require_version('GExiv2', '0.10')
     from gi.repository import Gdk, Gtk, GObject, GdkPixbuf, GExiv2
 except:    
     print('An error occured. Python or one of its sub modules is absent...\nIt would be wise to check your python installation.')