]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/sitecustomize.py
BaseTools: Clear build versions to sync with buildtools/BaseTools
[mirror_edk2.git] / BaseTools / Source / Python / sitecustomize.py
1 #
2 # Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>
3 #
4 # 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