]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/sitecustomize.py
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Source / Python / sitecustomize.py
1 ## @file
2 #
3 #
4 # Copyright (c) 2009 - 2014, Apple Inc. All rights reserved.<BR>
5 #
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
7 import sys
8 import locale
9
10 if sys.platform == "darwin":
11 DefaultLocal = locale.getdefaultlocale()[1]
12 if DefaultLocal is None:
13 DefaultLocal = 'UTF8'
14 sys.setdefaultencoding(DefaultLocal)
15