File tree Expand file tree Collapse file tree 3 files changed +0
-9
lines changed
Expand file tree Collapse file tree 3 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,6 @@ config
1414
1515 StagPy configuration directory.
1616
17- .. data :: CONFIG_FILE
18- :annotation: = CONFIG_DIR / 'config.toml'
19-
20- Path of global configuration file.
21-
2217 .. data :: CONFIG_LOCAL
2318 :annotation: = pathlib.Path('.stagpy.toml')
2419
Original file line number Diff line number Diff line change @@ -64,8 +64,6 @@ def _check_config() -> None:
6464 uptodate = verfile .is_file () and verfile .read_text () == __version__
6565 if not uptodate :
6666 verfile .write_text (__version__ )
67- if not (uptodate and config .CONFIG_FILE .is_file ()):
68- conf .to_file_ (config .CONFIG_FILE )
6967 for stfile in _iter_styles ():
7068 stfile_conf = config .CONFIG_DIR / stfile
7169 if not (uptodate and stfile_conf .is_file ()):
@@ -91,7 +89,6 @@ def _check_config() -> None:
9189conf = config .Config .default_ ()
9290if not ISOLATED :
9391 _check_config ()
94- conf .update_from_file_ (config .CONFIG_FILE )
9592 if config .CONFIG_LOCAL .is_file ():
9693 conf .update_from_file_ (config .CONFIG_LOCAL )
9794
Original file line number Diff line number Diff line change 2222
2323HOME_DIR = Path .home ()
2424CONFIG_DIR = HOME_DIR / ".config" / "stagpy"
25- CONFIG_FILE = CONFIG_DIR / "config.toml"
2625CONFIG_LOCAL = Path (".stagpy.toml" )
2726
2827
You can’t perform that action at this time.
0 commit comments