mailr14354 - /1.3/sconstruct


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on August 11, 2011 - 15:46:
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()




Related Messages


Powered by MHonArc, Updated Thu Aug 11 16:00:02 2011