Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 import os | |
2 import sys | |
3 import shutil | |
4 | |
5 | |
6 def main(argv): | |
7 directory = argv[0] | |
8 if os.path.exists(directory): | |
9 shutil.rmtree(directory) | |
10 | |
11 return 0 | |
12 | |
13 | |
14 if '__main__' == __name__: | |
15 try: | |
16 sys.exit(main(sys.argv[1:])) | |
17 except KeyboardInterrupt: | |
18 sys.stderr.write('interrupted\n') | |
19 sys.exit(1) | |
OLD | NEW |