2018-01-29 18:10:08 +00:00
|
|
|
#! /usr/bin/env python
|
|
|
|
|
|
|
|
# Copyright 2018 Google Inc.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
import os
|
|
|
|
import shutil
|
|
|
|
import sys
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2018-01-30 16:30:48 +00:00
|
|
|
skia = os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir)
|
2018-01-29 18:10:08 +00:00
|
|
|
dst = os.path.join(skia, 'platform_tools', 'android', 'apps', 'skqp',
|
|
|
|
'src', 'main', 'assets', 'resources')
|
|
|
|
if os.path.isdir(dst) and not os.path.islink(dst):
|
|
|
|
shutil.rmtree(dst)
|
|
|
|
elif os.path.exists(dst):
|
|
|
|
os.remove(dst)
|
|
|
|
shutil.copytree(os.path.join(skia, 'resources'), dst)
|
|
|
|
|