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