Skip to content

Commit 750d8d5

Browse files
committed
Do not read/write global config file anymore
1 parent e3cdde8 commit 750d8d5

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

docs/sources/apiref/config.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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

stagpy/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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:
9189
conf = config.Config.default_()
9290
if 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

stagpy/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
HOME_DIR = Path.home()
2424
CONFIG_DIR = HOME_DIR / ".config" / "stagpy"
25-
CONFIG_FILE = CONFIG_DIR / "config.toml"
2625
CONFIG_LOCAL = Path(".stagpy.toml")
2726

2827

0 commit comments

Comments
 (0)