aboutsummaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/heartrate_game/heartrate_global.py
blob: 88c34b876d4b74aa9bf0986538b49a28c456b597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import os
import sys


_simulator = False


def simulator():
    global _simulator
    return _simulator


def set_simulator(s):
    global _simulator
    _simulator = s


is_android = os.environ.get('ANDROID_ARGUMENT')