diff options
| author | William Deegan <bill@baddogconsulting.com> | 2016-04-09 16:14:38 (GMT) |
|---|---|---|
| committer | William Deegan <bill@baddogconsulting.com> | 2016-04-09 16:14:38 (GMT) |
| commit | 1c4bb9541d7acf1c73a8b2071bf57bdd5ea850de (patch) | |
| tree | fdc68838cd90dbb2b9481340770506bf938cb280 /src | |
| parent | c98ae452ff8c03190005739023ff5ba11755aab2 (diff) | |
| parent | 11cea9c954aff5ce81d85de454dd4547e980b705 (diff) | |
| download | SCons-1c4bb9541d7acf1c73a8b2071bf57bdd5ea850de.zip SCons-1c4bb9541d7acf1c73a8b2071bf57bdd5ea850de.tar.gz SCons-1c4bb9541d7acf1c73a8b2071bf57bdd5ea850de.tar.bz2 | |
Merged in techtonik/scons (pull request #308)
Improve a few docs and messages
Diffstat (limited to 'src')
| -rw-r--r-- | src/engine/SCons/SConf.py | 8 | ||||
| -rw-r--r-- | src/script/scons.py | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/SCons/SConf.py b/src/engine/SCons/SConf.py index 286f230..94027ec 100644 --- a/src/engine/SCons/SConf.py +++ b/src/engine/SCons/SConf.py @@ -755,10 +755,10 @@ class CheckContext(object): A typical test is just a callable with an instance of CheckContext as first argument: - def CheckCustom(context, ...) - context.Message('Checking my weird test ... ') - ret = myWeirdTestFunction(...) - context.Result(ret) + def CheckCustom(context, ...): + context.Message('Checking my weird test ... ') + ret = myWeirdTestFunction(...) + context.Result(ret) Often, myWeirdTestFunction will be one of context.TryCompile/context.TryLink/context.TryRun. The results of diff --git a/src/script/scons.py b/src/script/scons.py index e522f57..1b9a824 100644 --- a/src/script/scons.py +++ b/src/script/scons.py @@ -188,8 +188,8 @@ sys.path = libs + sys.path if __name__ == "__main__": try: import SCons.Script - except: - print("Import failed. Unable to find SCons files in:") + except ImportError: + print("SCons import failed. Unable to find engine files in:") for path in libs: print(" %s" % path) raise |
