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