From 2b1f036817578654d6de763211615e9c11bf1abb Mon Sep 17 00:00:00 2001 From: Amorilia <amorilia@users.sourceforge.net> Date: Sun, 12 Feb 2006 19:00:23 +0000 Subject: [PATCH] ok, now swig detection works! --- SConstruct | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index c0881ea4..d5814034 100644 --- a/SConstruct +++ b/SConstruct @@ -29,9 +29,10 @@ else: env = Environment(ENV = os.environ) -# TODO: detect SWIG -#if *** not swig ***: -if False: +# detect SWIG +try: + env['SWIG'] +except KeyError: print """ Error: SWIG not found. Please install SWIG, as we need it to create the python wrapper. -- GitLab