summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Tool
diff options
context:
space:
mode:
authorRussel Winder <russel@winder.org.uk>2012-10-07 12:53:59 (GMT)
committerRussel Winder <russel@winder.org.uk>2012-10-07 12:53:59 (GMT)
commita3b029fc95f3d3a4ad6f891981d7d587875d0a1d (patch)
tree9f53c187a70720519f6479d544f73bab6222b583 /src/engine/SCons/Tool
parent1f035386be2924e356d385e813703b761f3dd43b (diff)
parent46043901f7a93385e5bb2d3243073bd6c5634ca8 (diff)
downloadSCons-a3b029fc95f3d3a4ad6f891981d7d587875d0a1d.zip
SCons-a3b029fc95f3d3a4ad6f891981d7d587875d0a1d.tar.gz
SCons-a3b029fc95f3d3a4ad6f891981d7d587875d0a1d.tar.bz2
Merge in default/tip from the mainline.
Diffstat (limited to 'src/engine/SCons/Tool')
-rw-r--r--src/engine/SCons/Tool/xgettext.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/xgettext.py b/src/engine/SCons/Tool/xgettext.py
index 17e055f..64436b8 100644
--- a/src/engine/SCons/Tool/xgettext.py
+++ b/src/engine/SCons/Tool/xgettext.py
@@ -271,7 +271,10 @@ def generate(env,**kw):
import SCons.Util
from SCons.Tool.GettextCommon import RPaths, _detect_xgettext
- env['XGETTEXT'] = _detect_xgettext(env)
+ try:
+ env['XGETTEXT'] = _detect_xgettext(env)
+ except:
+ env['XGETTEXT'] = 'xgettext'
# NOTE: sources="$SOURCES" would work as well. However, we use following
# construction to convert absolute paths provided by scons onto paths
# relative to current working dir. Note, that scons expands $SOURCE(S) to