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"): def create_file(name: str, silo: str, template: str = "default.md"):
if silo: if silo:
Path(silo).mkdir(exist_ok=True) Path(silo).mkdir(exist_ok=True)
if silo[-1] != '/': if silo[-1] != "/":
silo += '/' silo += "/"
content = apply_template(Path.home().joinpath('.config/z/templates'), template) content = apply_template(Path.home().joinpath(".config/z-py/templates"), template)
with open(silo + name, 'w') as f: with open(silo + name, "w") as f:
f.write(content) f.write(content)
return return