From 173573b790643a2641fcaaac692214a813653f6c Mon Sep 17 00:00:00 2001 From: Ilya Date: Wed, 28 Feb 2024 17:18:02 +0300 Subject: [PATCH] fix bug with no dir --- tvms/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tvms/__init__.py b/tvms/__init__.py index 77bb899..9f2cae6 100755 --- a/tvms/__init__.py +++ b/tvms/__init__.py @@ -29,6 +29,9 @@ def cli(): default="./result/table.py") @click.option("--count", type=int, default=200) 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) rows = count // cols