def get_env_var(name, default=None):
    value = _get_env_var_from_java(name)
    if value is not None:
        return value
    try:
        value = os.environ[_encode(name)]
    except __HOLE__:
        return default
    else:
        return _decode(value)
dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/robot/utils/robotenv.py/get_env_var