comparison util/cleanDirectory.py @ 0:f493979f1408 draft default tip

planemo upload for repository https://github.com/Yating-L/hubarchivecreator-test commit 48b59e91e2dcc2e97735ee35d587960cbfbce932-dirty
author yating-l
date Wed, 21 Dec 2016 12:13:04 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f493979f1408
1 #!/usr/bin/python
2 """Use to clean the directory after the run of HubArchiveCreator.py manually"""
3 import os
4 import shutil
5
6 # Remove 'myHub.zip at root folder
7 try:
8 os.remove('myHub.zip')
9 except OSError as o:
10 # We don't need to crash the program
11 print 'Warning: ' + str(o)
12
13 # Remove 'myHub' folder and its content
14 shutil.rmtree('myHub', ignore_errors=True)