From a4ccb08296f77877000037e06bd66776f6c41cf8 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Thu, 24 Mar 2022 15:29:56 -0300 Subject: [PATCH] [commons] refactoring: using empty string for the default LANG --- bauh/commons/system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bauh/commons/system.py b/bauh/commons/system.py index f9513b54..f013febf 100644 --- a/bauh/commons/system.py +++ b/bauh/commons/system.py @@ -13,7 +13,7 @@ PY_VERSION = "{}.{}".format(sys.version_info.major, sys.version_info.minor) GLOBAL_PY_LIBS = '/usr/lib/python{}'.format(PY_VERSION) PATH = os.getenv('PATH') -DEFAULT_LANG = 'en' +DEFAULT_LANG = '' GLOBAL_INTERPRETER_PATH = ':'.join(PATH.split(':')[1:]) @@ -23,7 +23,7 @@ if GLOBAL_PY_LIBS not in PATH: USE_GLOBAL_INTERPRETER = bool(os.getenv('VIRTUAL_ENV')) -def gen_env(global_interpreter: bool, lang: str = DEFAULT_LANG, extra_paths: Optional[Set[str]] = None) -> dict: +def gen_env(global_interpreter: bool, lang: Optional[str] = DEFAULT_LANG, extra_paths: Optional[Set[str]] = None) -> dict: custom_env = dict(os.environ) if lang is not None: