]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - BaseTools/Source/Python/sitecustomize.py
Add IMAGE_ATTRIBUTE_UEFI_IMAGE definition from UEFI 2.4 specification.
[mirror_edk2.git] / BaseTools / Source / Python / sitecustomize.py
... / ...
CommitLineData
1#\r
2# Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>\r
3#\r
4# This program and the accompanying materials\r
5# are licensed and made available under the terms and conditions of the BSD License\r
6# which accompanies this distribution. The full text of the license may be found at\r
7# http://opensource.org/licenses/bsd-license.php\r
8#\r
9# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11import sys\r
12import locale\r
13\r
14if sys.platform == "darwin":\r
15 DefaultLocal = locale.getdefaultlocale()[1]\r
16 if DefaultLocal is None:\r
17 DefaultLocal = 'UTF8' \r
18 sys.setdefaultencoding(DefaultLocal)\r
19\r