update config location

This commit is contained in:
Tyler Starr 2024-07-14 23:20:06 -07:00
parent 69ebf16346
commit 0750e9e333

View File

@ -40,10 +40,10 @@ def normalize_name(name: str, tags: str, time: datetime.date | None = None, ext:
def create_file(name: str, silo: str, template: str = "default.md"):
if silo:
Path(silo).mkdir(exist_ok=True)
if silo[-1] != '/':
silo += '/'
content = apply_template(Path.home().joinpath('.config/z/templates'), template)
with open(silo + name, 'w') as f:
if silo[-1] != "/":
silo += "/"
content = apply_template(Path.home().joinpath(".config/z-py/templates"), template)
with open(silo + name, "w") as f:
f.write(content)
return