get-definitions: don't create dirs breaking ntfs

This commit is contained in:
dece 2021-03-16 00:41:03 +01:00
parent ba27b4cd9a
commit 5fb2c37142

View file

@ -89,7 +89,7 @@ def process_definition_page(soup, form, variant):
def save_definition(name, variant, content):
def_dir = Path.cwd() / name
def_dir = Path.cwd() / name.rstrip(".") # fucking ntfs
def_dir.mkdir(exist_ok=True)
def_file_path = def_dir / f"{variant}.txt"
try: