Wrong error message from `SaveScreenshot` when save directory doesn’t exist
When I use the following line in Python trace, pvpython
complains that it has run out of disk space when the directory passed doesn’t exist. This is a misleading error message and hopefully straightforward to fix. I don’t know if anyone else is also getting this. I just wanted to report it here for developers to take notice.
Discourse thread: here
SaveScreenshot(f'{screenshot_loc}/screenshot-{file_no:04d}.png', layout1, SaveAllViews=1,
ImageResolution=[1102, 664],
FontScaling='Scale fonts proportionally',
SeparatorWidth=1,
SeparatorColor=[0.937, 0.922, 0.906],
OverrideColorPalette='',
StereoMode='No change',
TransparentBackground=0,
# PNG options
CompressionLevel='0',
MetaData=['Application', 'ParaView'])