Skip to content

Commit

Permalink
Merge pull request #318 from afshin/fix-user
Browse files Browse the repository at this point in the history
Fix --user flag
  • Loading branch information
afshin authored Oct 2, 2020
2 parents 7380390 + dbab941 commit 7d92e76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jupyter_server/extension/serverextension.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ def _get_config_dir(user=False, sys_prefix=False):
sys_prefix : bool [default: False]
Get sys.prefix, i.e. ~/.envs/my-env/etc/jupyter
"""
user = False if sys_prefix else user
if user and sys_prefix:
raise ArgumentConflict("Cannot specify more than one of user or sys_prefix")
sys_prefix = False
if user:
extdir = jupyter_config_dir()
elif sys_prefix:
Expand Down

0 comments on commit 7d92e76

Please sign in to comment.