forked from premiere/premiere-libtorrent
fix clean.py to be platform independent
This commit is contained in:
parent
9b0f022499
commit
fd37a23edd
6
clean.py
6
clean.py
|
@ -1,4 +1,5 @@
|
||||||
import os
|
import os
|
||||||
|
import shutil
|
||||||
|
|
||||||
to_delete = [
|
to_delete = [
|
||||||
'session_stats',
|
'session_stats',
|
||||||
|
@ -22,5 +23,8 @@ for d in directories:
|
||||||
for f in to_delete:
|
for f in to_delete:
|
||||||
path = os.path.join(d, f)
|
path = os.path.join(d, f)
|
||||||
print path
|
print path
|
||||||
os.system('rm -rf %s' % path)
|
try:
|
||||||
|
shutil.rmtree(path)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue