Template:Plotants bug: Difference between revisions

From CASA Guides
Jump to navigationJump to search
Jgallimo (talk | contribs)
Created page with '<div style="background-color: #dddddd;"> '''Beta-alert''': At the time of this revision, plotants was leaving table.lock files that make the rest of the tutorial unhappy. Her…'
(No difference)

Revision as of 18:27, 24 February 2010

Beta-alert: At the time of this revision, 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))