Looks like the faulthandler problem was with pythonw in general, probably due to the fact that it makes stderr and stdout null by default. Moving it to after they are redirected to a file seems to work okay for both python and pythonw (although if pythonw is started without the --stdlog argument it's going to fail, hence the try\catch).
Looks like the faulthandler problem was with pythonw in general, probably due to the fact that it makes stderr and stdout null by default. Moving it to after they are redirected to a file seems to work okay for both python and pythonw (although if pythonw is started without the --stdlog argument it's going to fail, hence the try\catch).