aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/save_variables.py
Commit message (Collapse)AuthorAgeFilesLines
* save_variables: Check lowercase variable namesPedro Lamas2025-02-021-0/+2
| | | | Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
* save_variables: Verify filename path is writeable at startupJustin Schuh2022-12-111-0/+2
| | | | Signed-off-by: Justin Schuh <code@justinschuh.com>
* save_variables: Do not write to console when variables are savedMapleLeafMakers2022-09-011-1/+0
| | | | | | | Removes a call to gcmd.respond_info which writes 'VARIABLE SAVED' to the console every time the SAVE_VARIABLE command is called. Signed-off-by: Andre LeBlanc <mapleleafmakers@gmail.com>
* klippy: Add Python2 module wrappers and use Python3 module namingKevin O'Connor2021-10-041-1/+1
| | | | | | | Add wrappers for some common Python modules so that the code can run on both Python2 and Python3. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_macro: Use deepcopy() on get_status() resultsKevin O'Connor2021-01-201-1/+1
| | | | | | | | | If a get_status() method returns a mutable object (such as a list or dict) then it would be possible for a gcode command template to incorrectly alter the program's internal state. Perform a deepcopy() operation on all get_status() return results to avoid that. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* save_variables: Import ConfigParser as configparser for better Python3 supportKevin O'Connor2021-01-171-3/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* save_variables: Support saving variables to a disk fileKevin O'Connor2020-12-031-0/+63
Signed-off-by: Dushyant Ahuja dusht.ahuja@gmail.com Signed-off-by: Kevin O'Connor <kevin@koconnor.net>