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