FYI, pure python implementation
Hi @dvarrazzo !
I think I missed to share you our pure python implementation of setproctitle. It's base on py-setproctitle but using ctypes. I didn't extract that module from temBoard source code.
Here is the code : https://github.com/dalibo/temboard/blob/master/ui/temboardui/toolkit/proctitle.py
It works on Python 2 and 3.
What do you think of this ?
Regards, Étienne
Does it pass setproctitle test suite?
Do you mean py-setproctitle own test suite ?
We have tests for this : https://github.com/dalibo/temboard/blob/2b31325f77684264b34636ef2784382262e863a9/tests/test_00_setup_ui.py#L13-L28 base on embedded test at https://github.com/dalibo/temboard/blob/2b31325f77684264b34636ef2784382262e863a9/ui/temboardui/toolkit/proctitle.py#L219-L242
Reading py-setproctitle, I'd say that our implementation is a subset of py-setproctitle. It only implements argv overwriting.