From 26a25527a1bec5b4ba17ed3ca9dace3d5a6f65cd Mon Sep 17 00:00:00 2001 From: GregNoel Date: Wed, 29 Oct 2008 23:55:16 +0000 Subject: [PATCH] exception must be stringified before comparison git-svn-id: http://scons.tigris.org/svn/scons/trunk@3747 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Tool/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/SCons/Tool/__init__.py b/src/engine/SCons/Tool/__init__.py index 9924ab1c..8fa97cdc 100644 --- a/src/engine/SCons/Tool/__init__.py +++ b/src/engine/SCons/Tool/__init__.py @@ -142,7 +142,7 @@ class Tool: file.close() return module except ImportError, e: - if e!="No module named %s"%self.name: + if str(e)!="No module named %s"%self.name: raise SCons.Errors.EnvironmentError, e try: import zipimport -- 2.26.2