$OpenBSD: patch-src_electric-activity_electric_py,v 1.4 2012/11/24 08:54:01 ajacoutot Exp $
--- src/electric-activity/electric.py.orig	Mon Aug 27 23:34:51 2012
+++ src/electric-activity/electric.py	Sat Nov 24 08:29:03 2012
@@ -89,14 +89,14 @@ class Gcompris_electric:
                    "gnucap.exe",
                    os.path.join(gcompris.PYTHON_PLUGIN_DIR, 'bin', 'gnucap'),
                    "/usr/bin/gnucap",
-                   "/usr/local/bin/gnucap",
+                   "${LOCALBASE}/bin/gnucap",
 		   os.path.join(gcompris.DATA_DIR, '..' , '..', '..', 'bin', 'gnucap')):
       if(os.path.exists(binary)):
         self.gnucap_binary = binary
         break
 
     if not self.gnucap_binary:
-      gcompris.utils.dialog(_("Cannot find the 'gnucap' electric simulator.\nYou can download and install it from:\n<http://www.gnu.org/software/gnucap/>\nTo be detected, it must be installed in\n/usr/bin/gnucap or /usr/local/bin/gnucap.\nYou can still use this activity to draw schematics without computer simulation."),
+      gcompris.utils.dialog(_("Cannot find the 'gnucap' electric simulator.\nYou can download and install it from:\n<http://www.gnu.org/software/gnucap/>\nTo be detected, it must be installed in\n/usr/bin/gnucap or ${LOCALBASE}/bin/gnucap.\nYou can still use this activity to draw schematics without computer simulation."),
                             None)
 
 
