Commit ddeecfc1 authored by Huihui, Jonathan's avatar Huihui, Jonathan
Browse files

improve comments

parent 346fe479
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -50,14 +50,12 @@ def check_multi_environment(env_var, env_var_multi, multi_value):
    has been specified and return that value instead.

    :param env_var: the vanilla environment variable to look for
    :param value: the vanilla environment variable value
    :param env_var_multi: the modified environment variable to look for
    :param multi_value: the value of the modified environmental
    """
    # assume check environment has already been run on the init
    
    # check for existence, if it doesn't exist, return multi_value
    # if os.environ[env_var] == str(value):
    if not str(env_var) in os.environ:
        if isinstance(multi_value, bool):
            return boolify(os.environ[env_var_multi])