1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: restore sys.argv in case of exception
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500814
Index: scipy-0.7.1/scipy/weave/build_tools.py
===================================================================
--- scipy-0.7.1.orig/scipy/weave/build_tools.py 2010-04-05 16:40:02.377973881 +0200
+++ scipy-0.7.1/scipy/weave/build_tools.py 2010-04-05 16:41:02.685970432 +0200
@@ -283,6 +283,9 @@
configure_python_path(build_dir)
except SyntaxError: #TypeError:
success = 0
+ except Exception, e:
+ restore_sys_argv()
+ raise e
# restore argv after our trick...
restore_sys_argv()
|