cd315e022fb51d9e1c2b78d9d48518b4068ca155
[mirror_edk2.git] / BaseTools / Source / Python / sitecustomize.py
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.
11 import sys
12 import locale
13
14 if sys.platform == "darwin":
15 DefaultLocal = locale.getdefaultlocale()[1]
16 if DefaultLocal is None:
17 DefaultLocal = 'UTF8'
18 sys.setdefaultencoding(DefaultLocal)
19