[commons] refactoring: using empty string for the default LANG

This commit is contained in:
Vinicius Moreira
2022-03-24 15:29:56 -03:00
parent 6800d6f8e5
commit a4ccb08296

View File

@@ -13,7 +13,7 @@ PY_VERSION = "{}.{}".format(sys.version_info.major, sys.version_info.minor)
GLOBAL_PY_LIBS = '/usr/lib/python{}'.format(PY_VERSION) GLOBAL_PY_LIBS = '/usr/lib/python{}'.format(PY_VERSION)
PATH = os.getenv('PATH') PATH = os.getenv('PATH')
DEFAULT_LANG = 'en' DEFAULT_LANG = ''
GLOBAL_INTERPRETER_PATH = ':'.join(PATH.split(':')[1:]) 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')) 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) custom_env = dict(os.environ)
if lang is not None: if lang is not None: