mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Allow empty configuration values to be supplied from environment
For example it may be desirable for `CC_OPT_FLAGS` to be empty.
This commit is contained in:
@@ -529,7 +529,9 @@ def get_from_env_or_user_or_default(environ_cp, var_name, ask_for_var,
|
||||
string value for var_name
|
||||
"""
|
||||
var = environ_cp.get(var_name)
|
||||
if not var:
|
||||
# an intentionally empty value in the
|
||||
# environment is not the same as no value
|
||||
if var is None:
|
||||
var = get_input(ask_for_var)
|
||||
print('\n')
|
||||
if not var:
|
||||
|
||||
Reference in New Issue
Block a user