Looking at this issue again.. The workaround doesn't seem to work. The directory must first exist for the file to be written, so creating a temp file and deleting doesn't seem to be an option.
QDir
doesn't seem to be exposed via the API, at least that I can find. Is it?
I've also tried subprocess.check_call(mkdir)
which interesting doesn't seem to work either. If I change the command to `explorer`and provide an existing path, the command works. It's only the mkdir
command failing.