fix clean.py to be platform independent

This commit is contained in:
Arvid Norberg 2014-01-20 22:19:34 +00:00
parent 9b0f022499
commit fd37a23edd
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import os
import shutil
to_delete = [
'session_stats',
@ -22,5 +23,8 @@ for d in directories:
for f in to_delete:
path = os.path.join(d, f)
print path
os.system('rm -rf %s' % path)
try:
shutil.rmtree(path)
except:
pass