(variable_name, *, fail_on_missing=True)
| 28 | |
| 29 | |
| 30 | def read_variable(variable_name, *, fail_on_missing=True): |
| 31 | value = os.environ.get(variable_name) |
| 32 | if fail_on_missing and (value == '' or value is None): |
| 33 | raise Exception('Environment variable ' + variable_name + ' is not set') |
| 34 | |
| 35 | return value |
| 36 | |
| 37 | |
| 38 | def is_min_version(version, system_version=None): |