forked from Imagelibrary/littlefs
scripts: plot.py: Reorganized main -> main_ to isolate -k/--keep-open logic
This simplifies plot.py's -k/--keep-open logic into a self-contained loop that just calls main_ on an update. This is a compromise on getting rid of -k/--keep-open completely, since we _could_ just rely on watch.py. But plot.py knowing which argument is the file to watch is convenient. The eventual plan is to adopt this small bit of copy-pastable-code in the other ascii-art scripts (treemap.py, dbgbmap.py, etc).
This commit is contained in:
918
scripts/plot.py
918
scripts/plot.py
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user