1e9297d28Sopenharmony_ci#!/usr/bin/env python
2e9297d28Sopenharmony_ci# -*- coding: utf-8 -*-
3e9297d28Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
4e9297d28Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
5e9297d28Sopenharmony_ci# you may not use this file except in compliance with the License.
6e9297d28Sopenharmony_ci# You may obtain a copy of the License at
7e9297d28Sopenharmony_ci#
8e9297d28Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
9e9297d28Sopenharmony_ci#
10e9297d28Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
11e9297d28Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
12e9297d28Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13e9297d28Sopenharmony_ci# See the License for the specific language governing permissions and
14e9297d28Sopenharmony_ci# limitations under the License.
15e9297d28Sopenharmony_ci
16e9297d28Sopenharmony_ciimport os
17e9297d28Sopenharmony_ciimport sys
18e9297d28Sopenharmony_ci
19e9297d28Sopenharmony_ci
20e9297d28Sopenharmony_cidef main():
21e9297d28Sopenharmony_ci    filename = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../../graphic_2d_ext/ohcore")
22e9297d28Sopenharmony_ci    is_exist = os.path.exists(filename) and os.path.isdir(filename)
23e9297d28Sopenharmony_ci    sys.stdout.write(str(is_exist))
24e9297d28Sopenharmony_ci    return 0
25e9297d28Sopenharmony_ci
26e9297d28Sopenharmony_ciif __name__ == '__main__':
27e9297d28Sopenharmony_ci    sys.exit(main())
28