Template:Plotants bug

From CASA Guides
Revision as of 14:31, 24 February 2010 by Jgallimo (talk | contribs)
Jump to navigationJump to search

Beta-alert: At the time of this revision (CASA 3.0.0), plotants was leaving table.lock files that make the rest of the tutorial unhappy. Here's a pythonic way to zap those table.lock files.

import os
for root, dirs, files in os.walk('./'):
    for name in files:
        if name == 'table.lock': os.remove(os.path.join(root,name))