OLD | NEW |
| 1 from __future__ import print_function |
| 2 |
1 import os | 3 import os |
2 import sys | 4 import sys |
3 import subprocess | 5 import subprocess |
4 import shutil | 6 import shutil |
5 | 7 |
6 | 8 |
7 def get_dst_path(): | 9 def get_dst_path(): |
8 cwd = os.getcwd() | 10 cwd = os.getcwd() |
9 return os.path.join(cwd, 'src', 'third_party', | 11 return os.path.join(cwd, 'src', 'third_party', |
10 'libadblockplus_android', 'third_party', 'android_sdk') | 12 'libadblockplus_android', 'third_party', 'android_sdk') |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 if a16 != 0: | 72 if a16 != 0: |
71 return a16 | 73 return a16 |
72 | 74 |
73 a21 = install('Platform 21', 'platforms', 'android-21', True) | 75 a21 = install('Platform 21', 'platforms', 'android-21', True) |
74 if a21 != 0: | 76 if a21 != 0: |
75 return a21 | 77 return a21 |
76 | 78 |
77 return 0 | 79 return 0 |
78 | 80 |
79 | 81 |
80 if '__main__' == __name__: | 82 if __name__ == '__main__': |
81 try: | 83 try: |
82 sys.exit(main(sys.argv[1:])) | 84 sys.exit(main(sys.argv[1:])) |
83 except KeyboardInterrupt: | 85 except KeyboardInterrupt: |
84 sys.stderr.write('interrupted\n') | 86 sys.exit('interrupted') |
85 sys.exit(1) | |
OLD | NEW |