Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: third_party/libadblockplus_android/clear_cache.py

Issue 29670555: Issue 6264 - Can't prepare libadblockplus dependencies (Closed)
Patch Set: Created Jan. 16, 2018, 5:29 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 import os 1 import os
2 import sys 2 import sys
3 import shutil 3 import shutil
4 4
5 def main(argv): 5 def main(argv):
6 directory = argv[0] 6 directory = argv[0]
7 if os.path.exists(directory): 7 if os.path.exists(directory):
8 #print("Deleting %s" % directory) 8 #print("Deleting %s" % directory)
9 shutil.rmtree(directory) 9 shutil.rmtree(directory)
10 10
11 return 0 11 return 0
12 12
13 if '__main__' == __name__: 13 if '__main__' == __name__:
14 try: 14 try:
15 sys.exit(main(sys.argv[1:])) 15 sys.exit(main(sys.argv[1:]))
16 except KeyboardInterrupt: 16 except KeyboardInterrupt:
17 sys.stderr.write('interrupted\n') 17 sys.stderr.write('interrupted\n')
18 sys.exit(1) 18 sys.exit(1)
OLDNEW
« third_party/libadblockplus_android/BUILD.gn ('K') | « third_party/libadblockplus_android/clear.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld