Salome HOME
fix inexisting LANG=en_US.utf8
[tools/sat.git] / data / templates / Application / config / splash_generator / splash2.py
index 476904df689c664f1a73e6d1c464aab613bce69d..1521075b8d14de1e4e9c23ebb3eb1df0240426c8 100755 (executable)
@@ -6,7 +6,12 @@
 
 import os, sys
 
-__LANG__=os.getenv("LANG")
+
+try:
+  __LANG__ = os.environ["LANG"] # original locale
+except:
+  __LANG__ = "en_US.utf8" #default
+
 __FR__={
     "This script requires the Image, ImageDraw and ImageFont libraries":
         "Ce script a besoin de Image, ImageDraw et ImageFont python librairies",