MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / envset

Function envset

pythonFiles/printJupyWidgetEntryPoints.py:19–32  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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"""

Callers 1

jupyter_pathFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected