mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-09-04 18:14:23 -05:00
* create new test.simulator module to allow other packages to use the simulator without it crashing. also tiny QOL fixes * change user mode sim plot filter Now only plots matching the user set fingerprint are loaded, this decreases the chance of user error. * fix small oops in configure * oops * fix lint * isort, who dis * move folder over to chia/simulator also change mypy settings again
12 lines
280 B
Python
12 lines
280 B
Python
from pathlib import Path
|
|
from typing import List
|
|
|
|
from chia.simulator.block_tools import get_plot_dir
|
|
|
|
|
|
def get_test_plots(sub_dir: str = "") -> List[Path]:
|
|
path = get_plot_dir()
|
|
if sub_dir != "":
|
|
path = path / sub_dir
|
|
return list(sorted(path.glob("*.plot")))
|