]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/sitecustomize.py
BaseTools/GenFw: Enhance GenFw to support PRM GCC build
[mirror_edk2.git] / BaseTools / Source / Python / sitecustomize.py
index fa5cd40705cf482f7c4ba6bde8666058be25a74f..50783e1b3af0645d2f861d543aa0887014ef5981 100644 (file)
@@ -1,9 +1,15 @@
-import sys
-import locale
-
-if sys.platform == "darwin":
-  DefaultLocal = locale.getdefaultlocale()[1]
-  if DefaultLocal is None:
-    DefaultLocal = 'UTF8'  
-  sys.setdefaultencoding(DefaultLocal)
-
+## @file\r
+#\r
+#\r
+# Copyright (c) 2009 - 2014, Apple Inc. All rights reserved.<BR>\r
+#\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
+import sys\r
+import locale\r
+\r
+if sys.platform == "darwin" and sys.version_info[0] < 3:\r
+  DefaultLocal = locale.getdefaultlocale()[1]\r
+  if DefaultLocal is None:\r
+    DefaultLocal = 'UTF8'\r
+  sys.setdefaultencoding(DefaultLocal)\r
+\r