#======================== # AUTO Demo python/n-body #======================== print "\n***Clean the directory***" import glob import os toclean = glob.glob("b.*") + glob.glob("s.*") + glob.glob("d.*") for f in toclean: os.remove(f) cl()