We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b259cbf commit 84061a7Copy full SHA for 84061a7
jupyter_matlab_proxy/mwi_environment_variables.py
@@ -66,12 +66,12 @@ def get_env_name_development():
66
67
def is_development_mode_enabled():
68
"""Returns true if the app is in development mode."""
69
- return os.getenv(get_env_name_development()).lower() == "true"
+ return os.environ.get(get_env_name_development(), "false").lower() == "true"
70
71
72
def is_testing_mode_enabled():
73
"""Returns true if the app is in testing mode."""
74
return (
75
is_development_mode_enabled()
76
- and os.getenv(get_env_name_testing()).lower() == "true"
+ and os.environ.get(get_env_name_testing(), "false").lower() == "true"
77
)
0 commit comments