fix bug with no dir
This commit is contained in:
parent
b3fa52c8cb
commit
173573b790
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user