Return True if the given environment variable is set An environment variable is considered set if it is assigned to a value other than 'no', 'n', 'false', 'off', '0', or '0.0' (case insensitive)
(name)
| 17 | pjoin = __vscode_os.path.join |
| 18 | |
| 19 | def envset(name): |
| 20 | """Return True if the given environment variable is set |
| 21 | |
| 22 | An environment variable is considered set if it is assigned to a value |
| 23 | other than 'no', 'n', 'false', 'off', '0', or '0.0' (case insensitive) |
| 24 | """ |
| 25 | return __vscode_os.environ.get(name, "no").lower() not in [ |
| 26 | "no", |
| 27 | "n", |
| 28 | "false", |
| 29 | "off", |
| 30 | "0", |
| 31 | "0.0", |
| 32 | ] |
| 33 | |
| 34 | def get_home_dir(): |
| 35 | """Get the real path of the home directory""" |