From 453f69278a6ca7f32ab733167d38ea101804f3fb Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Wed, 2 Mar 2016 14:09:57 +0300 Subject: script/scons.py - improve error message on missing engine files --- src/script/scons.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- cgit v0.12 From 11cea9c954aff5ce81d85de454dd4547e980b705 Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Wed, 2 Mar 2016 14:11:19 +0300 Subject: Fix formatting in SConf check example --- src/engine/SCons/SConf.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 -- cgit v0.12