]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/sitecustomize.py
Sync tool code to BuildTools project r1783.
[mirror_edk2.git] / BaseTools / Source / Python / sitecustomize.py
diff --git a/BaseTools/Source/Python/sitecustomize.py b/BaseTools/Source/Python/sitecustomize.py
new file mode 100644 (file)
index 0000000..fa5cd40
--- /dev/null
@@ -0,0 +1,9 @@
+import sys
+import locale
+
+if sys.platform == "darwin":
+  DefaultLocal = locale.getdefaultlocale()[1]
+  if DefaultLocal is None:
+    DefaultLocal = 'UTF8'  
+  sys.setdefaultencoding(DefaultLocal)
+