Temporary modification to global settings in a script #4216
Unanswered
baloneysammich
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to temporarily modify/override global settings in a script? Or is it necessary to store the original values and then revert?
For example, when I do an X/Y plot, I'd like all images to be stored in a subfolder. So I made a copy of modules/xy_grid.py, added an option to input a directory name/pattern:
and code to enable Save images to a subdirectory and set Directory name pattern if something is input there:
This works but it permanently changes the global settings.
Beta Was this translation helpful? Give feedback.
All reactions