Don't print modules list when running programs
authorMitch Watrous <watrous@u.washington.edu>
Wed, 29 Jun 2011 13:29:53 -0700
changeset 7326 7950c25fa647
parent 7325 317a51a70b60
child 7327 5b8672bfade6
Don't print modules list when running programs
wscript
--- a/wscript	Tue Jun 28 11:42:50 2011 -0700
+++ b/wscript	Wed Jun 29 13:29:53 2011 -0700
@@ -773,8 +773,13 @@
         return
     env = bld.env
 
-    # Don't print the lists if this a clean or distribution clean.
-    if ('clean' not in Options.arg_line) and ('distclean' not in Options.arg_line):
+    # Don't print the lists if a program is being run, a Python
+    # program is being run, this a clean, or this is a distribution
+    # clean.
+    if ((not Options.options.run)
+        and (not Options.options.pyrun) 
+        and ('clean' not in Options.arg_line)
+        and ('distclean' not in Options.arg_line)):
 
         # Print the list of built modules.
         print