1# Copyright (c) 2011 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5"""Platform-specific utilities and pseudo-constants
6
7Any functions whose implementations or values differ from one platform to
8another should be defined in their respective platform_utils_<platform>.py
9modules. The appropriate one of those will be imported into this module to
10provide callers with a common, platform-independent interface.
11"""
12
13import sys
14
15# We may not support the version of Python that a user has installed (Cygwin
16# especially has had problems), but we'll allow the platform utils to be
17# included in any case so we don't get an import error.
18if sys.platform in ('cygwin', 'win32'):
19  from platform_utils_win import *
20elif sys.platform == 'darwin':
21  from platform_utils_mac import *
22elif sys.platform.startswith('linux'):
23  from platform_utils_linux import *
24