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