[gcompris-devel] [PATCH] Support GNUCAP environment variable
Aleksey Lim
alsroot at member.fsf.org
Wed May 26 05:39:36 UTC 2010
Will be useful in 0install environment when GnuCap is installed from 0install feed.
---
src/electric-activity/electric.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/electric-activity/electric.py b/src/electric-activity/electric.py
index e9251a6..d8d6062 100644
--- a/src/electric-activity/electric.py
+++ b/src/electric-activity/electric.py
@@ -85,7 +85,8 @@ class Gcompris_electric:
#
# You can provide a gnucap binary in python_plugin_dir.
#
- for binary in (os.path.join(gcompris.PYTHON_PLUGIN_DIR, 'bin', 'gnucap'),
+ for binary in (os.environ.get('GNUCAP', ''),
+ os.path.join(gcompris.PYTHON_PLUGIN_DIR, 'bin', 'gnucap'),
"/usr/bin/gnucap",
"/usr/local/bin/gnucap",
"gnucap.exe",
--
1.7.0.4
More information about the Gcompris-devel
mailing list