[Numpy-svn] r3450 - trunk/numpy/distutils

numpy-svn at scipy.org numpy-svn at scipy.org
Sun Nov 19 14:57:00 CST 2006


Author: pearu
Date: 2006-11-19 14:56:57 -0600 (Sun, 19 Nov 2006)
New Revision: 3450

Modified:
   trunk/numpy/distutils/core.py
Log:
Skip interactive mode when using script_args argument.

Modified: trunk/numpy/distutils/core.py
===================================================================
--- trunk/numpy/distutils/core.py	2006-11-19 20:52:52 UTC (rev 3449)
+++ trunk/numpy/distutils/core.py	2006-11-19 20:56:57 UTC (rev 3450)
@@ -103,7 +103,7 @@
 
 def setup(**attr):
 
-    if len(sys.argv)<=1:
+    if len(sys.argv)<=1 and not attr.get('script_args',[]):
         from interactive import interactive_sys_argv
         import atexit
         atexit.register(_exit_interactive_session)



More information about the Numpy-svn mailing list