07p/demos/fnc/clean.auto
raw| 1 | |
| 2 | #============== |
| 3 | # AUTO Demo fnc |
| 4 | #============== |
| 5 | import os, glob |
| 6 | |
| 7 | pgm = "fnc" |
| 8 | |
| 9 | cd("attr") |
| 10 | auto("clean.auto") |
| 11 | cd("..") |
| 12 | |
| 13 | cd("rep") |
| 14 | auto("clean.auto") |
| 15 | cd("..") |
| 16 | |
| 17 | dl("attrrep") |
| 18 | for i in [3,4,5,6,7,8]: |
| 19 | dl("xi"+str(i)) |
| 20 | dl("xis") |
| 21 | |
| 22 | for f in glob.glob("*.eps"): |
| 23 | os.remove(f) |
| 24 | |
| 25 | print "\n***Clean the directory***" |
| 26 | cl() |