On Mon, Dec 30, 2013 at 4:49 PM, Beman Dawes <bdawes@acm.org> wrote:
On Mon, Dec 30, 2013 at 1:31 PM, Beman Dawes <bdawes@acm.org> wrote:

Still failing.

# Cleaning up "D:\boost-regr\boost_root" directory ...

Traceback (most recent call last):
  File "run.py", line 83, in <module>
    runner(root)
  File "D:\boost-regr\tools_regression_src\regression.py", line 253, in __init__
    self.main()
  File "D:\boost-regr\tools_regression_src\regression.py", line 632, in main
    getattr(self,action_m)()
  File "D:\boost-regr\tools_regression_src\regression.py", line 586, in command_regression

    self.command_cleanup()
  File "D:\boost-regr\tools_regression_src\regression.py", line 262, in command_cleanup
    self.rmtree( self.boost_root )
  File "D:\boost-regr\tools_regression_src\regression.py", line 654, in rmtree

    shutil.rmtree( unicode( path ) )
  File "C:\Python27\lib\shutil.py", line 256, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\Python27\lib\shutil.py", line 254, in rmtree
    os.rmdir(path)

WindowsError: [Error 32] The process cannot access the file because it is being used by an
other process: u'D:\\boost-regr\\boost_root'

self.command_cleanup() is being called at line 586 without arguments, and that defaults to deleting boost_root at line 262.

Beyond the question of why command_cleanup() is being called without arguments in the first place, isn't there is a second problem? When command_cleanup is called without arguments, it first deletes boost_root, and then deletes three directories, two of which are in boost_root. Shouldn't the if 'source'... and if 'bin'... blocks of code be reversed?

--Beman