Author: bugman Date: Thu Aug 11 15:46:58 2011 New Revision: 14354 URL: http://svn.gna.org/viewcvs/relax?rev=14354&view=rev Log: The sconstruct script is only executed when it is the main loaded module or if launched by scons. Modified: 1.3/sconstruct Modified: 1.3/sconstruct URL: http://svn.gna.org/viewcvs/relax/1.3/sconstruct?rev=14354&r1=14353&r2=14354&view=diff ============================================================================== --- 1.3/sconstruct (original) +++ 1.3/sconstruct Thu Aug 11 15:46:58 2011 @@ -562,4 +562,5 @@ # Execute the main class. -Main() +if __name__ in ['__main__', 'SCons.Script']: + Main()