[python-win32] How to enable pywin to evaluate -X utf8 flag

2023-06-01 Thread Gualtiero Scotti
Hi, I need to start my python application through windows service. For this purpose I use pywin32. I'm not able to make a Python instance to evaluate the -X uf8 flag. This flag must be passed during python invocation only and not when it is already started. After some investigations I've found

Re: [python-win32] How to enable pywin to evaluate -X utf8 flag

2023-06-01 Thread Mark Hammond
https://github.com/mhammond/pywin32/blob/main/win32/Demos/service/nativePipeTestService.py is a demo of using a service using python.exe and supports specifying the command-line, so that might be an option? Mark On 2023-06-01 5:28 a.m., Gualtiero Scotti wrote: Hi, I need to start my python

Re: [python-win32] Setting Focus Assist Mode via COM

2023-06-01 Thread Bill Tutt
This IDL snippet from the GIST contains the GUID you're looking for: [uuid(f53321fa-34f8-4b7f-b9a3-361877cb94cf)] coclass QuietHoursSettings { [default] interface IQuietHoursSettings; } coclass's are the COM object. The interface guid you mentioned is that you need to supply to

[python-win32] stat fields seem wrong when accessing files over SMB on Windows

2023-06-01 Thread Jason Bowen
Hey Python on Windows folks, I just wanted to send this as a heads up about what seems to be a bug I've run into with newer pre-GA releases of Python 3.12 (cf. 3.12a7 and 3.12b1). I've filed an issue on the CPython repo: https://github.com/python/cpython/issues/105212 The gist is that up

Re: [python-win32] Setting Focus Assist Mode via COM

2023-06-01 Thread name zero via python-win32
Hey, thanks for your hints. I guess my easiest option would be to build a C++ CLI (.exe) from the code in the Gist and just call it with "subprocess.check_output()". Best regards On Thursday, June 1, 2023 at 07:09:02 PM GMT+2, Bill Tutt wrote: This IDL snippet from the GIST contains