Screenshots (filetype and folder) [SOLVED]

Is there an easy way to have screenshots created with base.screenshot() to be .PNG and also to be created in a subfolder you specify (rather than in the same folder as the script that calls it?)


I’d look into for that.


path = 'mypath/'
filename = 'hello'
format = '.png'

base.screenshot(namePrefix = path+filename+format, defaultFilename = False)

Thx! I was able to use this (and a little extra code to generate unique filenames) to do what I wanted.