Project

General

Profile

« Previous | Next » 

Revision 1672

opts.py: get_env_var(): default defaults to None

View differences:

lib/opts.py
8 8
    if env_names_ref != None: env_names_ref.append(name+'=1')
9 9
    return bool(os.getenv(name, default))
10 10

  
11
def get_env_var(name, default, env_names_ref=None):
11
def get_env_var(name, default=None, env_names_ref=None):
12 12
    if env_names_ref != None: env_names_ref.append(name+'=...')
13 13
    return os.getenv(name, default)
14 14

  

Also available in: Unified diff