From 0e2c7a630e066d782afdf3427b459b5596b53c35 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Wed, 6 Oct 2021 18:33:46 -0700 Subject: [PATCH] Add debug help for the user site path --- jupyter_core/command.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jupyter_core/command.py b/jupyter_core/command.py index 276052d..fb32f77 100644 --- a/jupyter_core/command.py +++ b/jupyter_core/command.py @@ -11,6 +11,7 @@ import json import os from shutil import which +import site import sys import sysconfig from subprocess import Popen @@ -257,6 +258,11 @@ def main(): else: print("JUPYTER_CONFIG_DIR is not set, so we use the default user-level config directory") + if site.ENABLE_USER_SITE: + print(f"Python's site.ENABLE_USER_SITE is True, so we add the user site directory '{site.getuserbase()}'") + else: + print("Python's site.ENABLE_USER_SITE is False, so we do not add the Python site user directory") + # data path list if env.get('JUPYTER_PATH'): print(f"JUPYTER_PATH is set to '{env.get('JUPYTER_PATH')}', which is prepended to the data paths")