Re: [python-win32] win32com + Brother Printer + Django

2018-03-25 Thread Scott Vitale
For this initial testing, I'm running Django directly. In production it will be run behind Apache/mod_wsgi. Setting sys.coinit_flags = 0 fixes the hang when running Django from a simple command line. This confirms to me that the issue is thread-related. What I'm seeing now is that the hang

Re: [python-win32] win32com + Brother Printer + Django

2018-03-25 Thread Tim Roberts
On Mar 23, 2018, at 9:44 AM, Scott Vitale wrote: > > I'm looking for some win32com help... I have a simple Python script that > creates a `Dispatch` object for a `bpac.Document` type (it's a Brother > printer SDK class). It works perfectly fine in a standalong script,