dotfiles/vscode/.vscode/extensions/ms-toolsai.jupyter-2024.5.0-darwin-arm64/pythonFiles/printJupyterDataDir.py
Errol Sancaktar 5f8db31398 alacritty
2024-07-15 17:06:13 -06:00

24 lines
712 B
Python

# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import os as _VSCODE_os
import site as _VSCODE_site
# Copied from site-packages/jupyter_core/paths.py
if _VSCODE_site.ENABLE_USER_SITE:
# Check if site.getuserbase() exists to be compatible with virtualenv,
# which often does not have this method.
if hasattr(_VSCODE_site, "getuserbase"):
_VSCODE_userbase = _VSCODE_site.getuserbase()
else:
_VSCODE_userbase = _VSCODE_site.USER_BASE
if _VSCODE_userbase:
_VSCODE_userbase = _VSCODE_os.path.join(_VSCODE_userbase, "share", "jupyter")
print(_VSCODE_userbase)
del _VSCODE_userbase
del _VSCODE_os, _VSCODE_site