From 53385678c9b2f79f5a73b4491ed5cd9717a458f6 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 33804c9..3a954b7 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 platform-specific directories" + ) + else: + print( + "JUPYTER_PLATFORM_DIRS is set to a false value, or is not set, so we use hardcoded legacy paths for platform-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"