From 7db89ccf17a2eca66f685c05bda78d230419d39a Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Tue, 27 Sep 2022 02:09:47 -0600 Subject: [PATCH] Add note to --debug text about JUPYTER_PLATFORM_DIRS --- jupyter_core/command.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/jupyter_core/command.py b/jupyter_core/command.py index 33804c96..76097cfa 100644 --- a/jupyter_core/command.py +++ b/jupyter_core/command.py @@ -231,6 +231,15 @@ def main(): if args.debug: env = os.environ + if paths.use_platform_dirs(): + print( + "JUPYTER_PLATFORM_DIRS is set to a true value, so we use platformdirs to find system-specific directories" + ) + else: + print( + "JUPYTER_PLATFORM_DIRS is set to a false value, or is not set, so we use hardcoded legacy paths for system-specific directories" + ) + if paths.prefer_environment_over_user(): print( "JUPYTER_PREFER_ENV_PATH is set to a true value, or JUPYTER_PREFER_ENV_PATH is not set and we detected a virtual environment, making the environment-level path preferred over the user-level path for data and config"