Skip to content

Commit

Permalink
Add debug help for the user site path
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Oct 7, 2021
1 parent 9841222 commit 0e2c7a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jupyter_core/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import json
import os
from shutil import which
import site
import sys
import sysconfig
from subprocess import Popen
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 0e2c7a6

Please sign in to comment.