File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import sys
8
8
from argparse import ArgumentParser
9
+ from pathlib import Path
9
10
10
- from .labconfig import DEFAULT_SETTINGS_FILE , LabConfig
11
+ import jupyter_core .paths as jupyter_core_paths
12
+
13
+ from .labconfig import LabConfig
11
14
12
15
13
16
class SubCommand :
@@ -86,7 +89,12 @@ def fill_parser(self, subparser):
86
89
87
90
def main ():
88
91
parser = ArgumentParser ()
89
- parser .add_argument ("--settings-file" , default = DEFAULT_SETTINGS_FILE )
92
+ parser .add_argument (
93
+ "--settings-file" ,
94
+ default = Path (jupyter_core_paths .jupyter_config_dir ())
95
+ / "labconfig"
96
+ / "default_setting_overrides.json" ,
97
+ )
90
98
subparsers = parser .add_subparsers (required = True )
91
99
for subcommand in SUBCOMMANDS :
92
100
subparser = subparsers .add_parser (subcommand .name , help = subcommand .help )
Original file line number Diff line number Diff line change 9
9
import logging
10
10
from pathlib import Path
11
11
12
- DEFAULT_SETTINGS_FILE = (
13
- Path .home () / ".jupyter" / "labconfig" / "default_setting_overrides.json"
14
- )
15
-
16
12
17
13
class LabConfig :
18
14
DOCTYPES = [
You can’t perform that action at this time.
0 commit comments