fix config.yaml creation
This commit is contained in:
parent
1a1442a7d2
commit
f8e84382b4
2 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
# SPDX-FileCopyrightText: 2024-present Marc Koch <marc-koch@posteo.de>
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
__version__ = "1.0.0rc1"
|
||||
__version__ = "1.0.0rc5"
|
|
@ -35,7 +35,8 @@ def get_config() -> dict:
|
|||
Creating a new one under '{config_yaml}'.
|
||||
Please fill in the required information.""")
|
||||
config_yaml.parent.mkdir(parents=True, exist_ok=True)
|
||||
Path("./config_template.yaml").write_text(config_yaml.read_text())
|
||||
config_yaml.touch()
|
||||
config_yaml.write_text(Path(Path(__file__).parent, "config_template.yaml").read_text())
|
||||
exit(0)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue