Browse Source

Use local variable

Steven Silvester 7 năm trước cách đây
mục cha
commit
de5c6a5456
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      jupyterlab/commands.py

+ 1 - 1
jupyterlab/commands.py

@@ -54,7 +54,7 @@ def get_app_dir(app_dir=None):
     # Check for a user level install.
     userbase = getattr(site, 'userbase', '')
     if here.startswith(userbase) and not app_dir.startswith(userbase):
-        app_dir = pjoin(site.getuserbase(), 'share', 'jupyter', 'lab')
+        app_dir = pjoin(userbase, 'share', 'jupyter', 'lab')
 
     # Check for a system install in '/usr/local/share'.
     elif (sys.prefix.startswith('/usr') and not