$OpenBSD: patch-src_comix_py,v 1.5 2019/05/02 16:15:48 sthen Exp $

point python to where comix modules are installed

Index: src/comix.py
--- src/comix.py.orig
+++ src/comix.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!${MODPY_BIN}
 
 """Comix - GTK Comic Book Viewer
 
@@ -26,6 +26,9 @@ import sys
 import gettext
 import getopt
 
+# add path for comix python modules
+sys.path.insert(0, '${PREFIX}/share/comix/src')
+
 #Check for PyGTK and PIL dependencies.
 try:
     import pygtk
@@ -49,8 +52,8 @@ except ImportError:
     sys.exit(1)
 
 try:
-    import Image
-    assert Image.VERSION >= '1.1.5'
+    from PIL import Image
+    assert Image.__version__ >= '1.1.5'
 except AssertionError:
     print "You don't have the required version of the Python Imaging",
     print 'Library (PIL) installed.'
