Hal Canary | b4d01a9 | 2018-01-29 13:10:08 -0500 | [diff] [blame] | 1 | #! /usr/bin/env python |
| 2 | |
| 3 | # Copyright 2018 Google Inc. |
| 4 | # Use of this source code is governed by a BSD-style license that can be |
| 5 | # found in the LICENSE file. |
| 6 | |
| 7 | import os |
| 8 | import shutil |
| 9 | import sys |
| 10 | |
| 11 | if __name__ == '__main__': |
Hal Canary | 537d9c0 | 2018-01-30 11:30:48 -0500 | [diff] [blame] | 12 | skia = os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir) |
Hal Canary | b4d01a9 | 2018-01-29 13:10:08 -0500 | [diff] [blame] | 13 | dst = os.path.join(skia, 'platform_tools', 'android', 'apps', 'skqp', |
| 14 | 'src', 'main', 'assets', 'resources') |
| 15 | if os.path.isdir(dst) and not os.path.islink(dst): |
| 16 | shutil.rmtree(dst) |
| 17 | elif os.path.exists(dst): |
| 18 | os.remove(dst) |
| 19 | shutil.copytree(os.path.join(skia, 'resources'), dst) |
| 20 | |