$OpenBSD: patch-devede_py,v 1.4 2008/06/24 10:43:21 ajacoutot Exp $
--- devede.py.orig	Tue Jun 24 00:25:56 2008
+++ devede.py	Tue Jun 24 12:40:40 2008
@@ -42,13 +42,13 @@ except ImportError:
 	print 'Psyco not installed, the program will just run slower'
 
 print "DeVeDe 3.9"
-if sys.platform!="win32":
+if sys.platform!="win32" and not sys.platform.startswith('openbsd'):
 	print "Locale: "+str(os.environ["LANG"])
 
 # append the directories where we install the devede's own modules
 tipo=-1
 try:
-	fichero=open("/usr/local/share/devede/devede.glade","r")
+	fichero=open("${PREFIX}/share/devede/devede.glade","r")
 	fichero.close()
 	tipo=1
 	found=True
@@ -96,12 +96,12 @@ elif tipo==1:
 	#gtk.glade.bindtextdomain("devede","/usr/share/locale")
 	#arbol=gtk.glade.XML("/usr/local/share/devede/devede.glade",domain="devede")
 
-	share_locale="/usr/share/locale" # Are you sure?
+	share_locale="${PREFIX}/share/locale" # Are you sure?
 	# if the files aren't at /usr, try with /usr/local
-	glade="/usr/local/share/devede/devede.glade"
-	sys.path.append("/usr/local/lib/devede")
-	font_path="/usr/local/share/devede"
-	pic_path="/usr/local/share/devede"
+	glade="${PREFIX}/share/devede/devede.glade"
+	sys.path.append("${MODPY_SITEPKG}/devede")
+	font_path="${PREFIX}/share/devede"
+	pic_path="${PREFIX}/share/devede"
 elif tipo==2:
 	# if the files aren't at /usr/local, try with ./
 	#gettext.bindtextdomain('devede', './po/')
