$OpenBSD: patch-devede_py,v 1.9 2009/05/25 18:14:07 ajacoutot Exp $
--- devede.py.orig	Mon May 25 14:50:34 2009
+++ devede.py	Mon May 25 19:58:08 2009
@@ -35,7 +35,7 @@ import pickle
 import cairo
 
 print "DeVeDe 3.13.1"
-if sys.platform!="win32":
+if sys.platform!="win32" and not sys.platform.startswith('openbsd'):
 	try:
 		print "Locale: "+str(os.environ["LANG"])
 	except:
@@ -44,7 +44,7 @@ if sys.platform!="win32":
 # append the directories where we install the devede's own modules
 tipo=-1
 try:
-	fichero=open("/usr/share/devede/wmain.ui","r")
+	fichero=open("${PREFIX}/share/devede/wmain.ui","r")
 	fichero.close()
 	tipo=0
 	found=True
@@ -78,13 +78,13 @@ if tipo==0:
 	#arbol=gtk.Builder("/usr/share/devede/devede.glade",domain="devede")
 	# append the directories where we install the devede's own modules
 
-	share_locale="/usr/share/locale"
-	glade="/usr/share/devede"
-	sys.path.append("/usr/lib/devede")
-	font_path="/usr/share/devede"
-	pic_path="/usr/share/devede"
-	other_path="/usr/share/devede"
-	help_path="/usr/share/doc/devede"
+	share_locale="${PREFIX}/share/locale"
+	glade="${PREFIX}/share/devede"
+	sys.path.append("${MODPY_SITEPKG}/devede")
+	font_path="${PREFIX}/share/devede"
+	pic_path="${PREFIX}/share/devede"
+	other_path="${PREFIX}/share/devede"
+	help_path="${PREFIX}/share/doc/devede"
 	print "Using package-installed files"
 	
 elif tipo==1:
