osmose.cleanup¶
Temporary directory management for osmose-python.
osmose_* temp directories are created during runs, calibration, export, and demo loading. Without explicit cleanup they accumulate over time, especially during calibration with hundreds of runs. This module provides:
cleanup_old_temp_dirs()— removes osmose temp dirs older than a given ageregister_cleanup()— registers an atexit handler that cleans on exit
Functions
|
Remove osmose temp directories older than max_age_hours. |
|
Register an atexit handler that removes all osmose temp dirs on shutdown. |