Difference between revisions of "Template:Plotants bug"

From CASA Guides
Jump to: navigation, search
 
Line 1: Line 1:
 
<div style="background-color: #dddddd;">
 
<div style="background-color: #dddddd;">
'''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.
+
'''Beta-alert''': At the time of this revision (CASA 3.2), [[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.
  
 
<source lang="python">
 
<source lang="python">

Latest revision as of 15:32, 21 April 2011

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