diff options
author | Jon Crall <erotemic@gmail.com> | 2017-10-27 05:45:02 -0400 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2017-10-27 15:15:02 +0530 |
commit | 9735ddd89904be67e4924f6e69ac6df4cf40c083 (patch) | |
tree | b033479229aa73dcad2ede35d936b1325e8d8783 /tools/setup_helpers | |
parent | d56713680deabee61e9a4423992067f123b78421 (diff) | |
download | pytorch-9735ddd89904be67e4924f6e69ac6df4cf40c083.tar.gz pytorch-9735ddd89904be67e4924f6e69ac6df4cf40c083.tar.bz2 pytorch-9735ddd89904be67e4924f6e69ac6df4cf40c083.zip |
check_env_flag now ignores case (#3317)
Diffstat (limited to 'tools/setup_helpers')
-rw-r--r-- | tools/setup_helpers/env.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/setup_helpers/env.py b/tools/setup_helpers/env.py index b7a555b651..6c3dbc389d 100644 --- a/tools/setup_helpers/env.py +++ b/tools/setup_helpers/env.py @@ -2,4 +2,4 @@ import os def check_env_flag(name): - return os.getenv(name) in ['ON', '1', 'YES', 'TRUE', 'Y'] + return os.getenv(name, '').upper() in ['ON', '1', 'YES', 'TRUE', 'Y'] |