openbsd-ports/graphics/comix/patches/patch-src_comix_py

23 lines
500 B
Plaintext

$OpenBSD: patch-src_comix_py,v 1.2 2009/04/15 08:26:28 landry Exp $
point python to where comix modules are installed
--- src/comix.py.orig Sun Feb 22 16:50:40 2009
+++ src/comix.py Tue Apr 7 20:35:05 2009
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!${MODPY_BIN}
"""Comix - GTK Comic Book Viewer
@@ -25,6 +25,9 @@ import os
import sys
import gettext
import getopt
+
+# add path for comix python modules
+sys.path.insert(0, '${PREFIX}/share/comix/src')
import constants
import deprecated