Boost logo

Boost-Commit :

From: troy_at_[hidden]
Date: 2008-06-26 15:16:21


Author: troy
Date: 2008-06-26 15:16:21 EDT (Thu, 26 Jun 2008)
New Revision: 46739
URL: http://svn.boost.org/trac/boost/changeset/46739

Log:
move the construction of the Popen into the try block, it can fail on file not found
Text files modified:
   branches/CMake/release/tools/build/CMake/marshal.py.in | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: branches/CMake/release/tools/build/CMake/marshal.py.in
==============================================================================
--- branches/CMake/release/tools/build/CMake/marshal.py.in (original)
+++ branches/CMake/release/tools/build/CMake/marshal.py.in 2008-06-26 15:16:21 EDT (Thu, 26 Jun 2008)
@@ -35,8 +35,8 @@
         self.ex = None
 
     def run(self):
- self.proc = Popen(argv, stdout=PIPE, stderr=PIPE)
         try:
+ self.proc = Popen(argv, stdout=PIPE, stderr=PIPE)
             (self.stderr, self.stdout) = self.proc.communicate()
         except EnvironmentError, e:
             self.ex = e


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk