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

Function get_home_dir

pythonFiles/printJupyWidgetEntryPoints.py:34–40  ·  view source on GitHub ↗

Get the real path of the home directory

()

Source from the content-addressed store, hash-verified

32 ]
33
34 def get_home_dir():
35 """Get the real path of the home directory"""
36 homedir = __vscode_os.path.expanduser("~")
37 # Next line will make things work even when /home/ is a symlink to
38 # /usr/home as it is on FreeBSD, for example
39 homedir = str(__vscode_Path(homedir).resolve())
40 return homedir
41
42 _dtemps: dict = {}
43

Callers 2

jupyter_config_dirFunction · 0.85
jupyter_data_dirFunction · 0.85

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected