fix bug with no dir

This commit is contained in:
Ilya Bezrukov 2024-02-28 17:18:02 +03:00
parent b3fa52c8cb
commit 173573b790

View File

@ -29,6 +29,9 @@ def cli():
default="./result/table.py") default="./result/table.py")
@click.option("--count", type=int, default=200) @click.option("--count", type=int, default=200)
def random_table(rtype, seed, prec, min, max, cols, docx, py, count): def random_table(rtype, seed, prec, min, max, cols, docx, py, count):
os.makedirs(os.path.split(docx)[0], exist_ok=True)
os.makedirs(os.path.split(py)[0], exist_ok=True)
random.seed(seed) random.seed(seed)
rows = count // cols rows = count // cols