Re: python-daemon and PID files

2017-03-04 Thread Ethan Furman
On 03/04/2017 09:09 PM, Ian Pilcher wrote: Is it possible to get python-daemon to create "systemd style" PID file? I.e., systemd wants a daemon to write a file with a specific name that *contains* the PID of the child process. python-daemon, OTOH, seems to use its pidfile parameter as more of

Re: python-daemon and PID files

2017-03-04 Thread Chris Angelico
On Sun, Mar 5, 2017 at 4:09 PM, Ian Pilcher wrote: > Is it possible to get python-daemon to create "systemd style" PID file? > > I.e., systemd wants a daemon to write a file with a specific name that > *contains* the PID of the child process. python-daemon, OTOH, seems to > use its pidfile parame

python-daemon and PID files

2017-03-04 Thread Ian Pilcher
Is it possible to get python-daemon to create "systemd style" PID file? I.e., systemd wants a daemon to write a file with a specific name that *contains* the PID of the child process. python-daemon, OTOH, seems to use its pidfile parameter as more of a lock file. Currently, I'm creating my PID

Re: Basic Packaging strategy question

2017-03-04 Thread ddbug
On Sunday, March 5, 2017 at 1:08:25 AM UTC+2, bilm...@gmail.com wrote: > I have a simple project that I want to package to put it on another machine > but everything I have read so far about packaging ends up putting the whole > install alongside with 'packages' - typically in .../site-packages.

Re: FYI: Removing posts with All Cap Authors

2017-03-04 Thread Chris Angelico
On Sun, Mar 5, 2017 at 1:11 PM, Rick Johnson wrote: > On Saturday, March 4, 2017 at 3:05:57 PM UTC-6, Peter Pearson wrote: >> I suspect I'm not the only fossil here who gets kinda >> misty contemplating NNTP's history. > > Yeah. Well... Python-list has developed quite a reputation > within usenet

Re: How to access installed scripts on Windows?

2017-03-04 Thread ddbug
Thank you eryk sun for the reply. I am not so concerned by installing modules as by installing scripts ('entry points'). Per user. If the Windows GUI installer can add the per-user script dirs to PATH it may be acceptable solution. > The installer has an option to update PATH to include > this

Re: FYI: Removing posts with All Cap Authors

2017-03-04 Thread Rick Johnson
On Saturday, March 4, 2017 at 3:05:57 PM UTC-6, Peter Pearson wrote: > I suspect I'm not the only fossil here who gets kinda > misty contemplating NNTP's history. Yeah. Well... Python-list has developed quite a reputation within usenet antiquities circles for its highly coveted collection of rare

Basic Packaging strategy question

2017-03-04 Thread bilmar19
I have a simple project that I want to package to put it on another machine but everything I have read so far about packaging ends up putting the whole install alongside with 'packages' - typically in .../site-packages. This seems a strange place to launch an app from! So, if I have an app wit

Re: FYI: Removing posts with All Cap Authors

2017-03-04 Thread Peter Pearson
On Sat, 4 Mar 2017 08:37:24 -0800 (PST), Wanderer wrote: > > I don't know what a netnews protocol is. I use Google Groups to look > at usenet. Just in case you're interested, the Network News Transfer Protocol, NNTP, is used to distribute posts over Usenet, a worldwide system for passing messages

Re: Getting stdout and stderr from subprocess in correct order

2017-03-04 Thread Ivan "Rambius" Ivanov
Hello, Thank you all for your suggestions. I will see what will apply to my use case. Regards Rambius On Sat, Mar 4, 2017 at 5:37 PM, Piet van Oostrum wrote: > "Ivan \"Rambius\" Ivanov" writes: > >> Dear colleagues, >> >> I using subprocess module and I am wondering how I can get the output >>

Re: FYI: Removing posts with All Cap Authors

2017-03-04 Thread rurpy--- via Python-list
On Saturday, March 4, 2017 at 9:37:35 AM UTC-7, Wanderer wrote: > On Saturday, March 4, 2017 at 11:31:13 AM UTC-5, Chris Angelico wrote: > > On Sun, Mar 5, 2017 at 3:22 AM, Wanderer wrote: > > > I mostly just lurk and view the post titles to see if something > > > interesting is being discussed. T

Re: FYI: Removing posts with All Cap Authors

2017-03-04 Thread Wanderer
On Saturday, March 4, 2017 at 11:31:13 AM UTC-5, Chris Angelico wrote: > On Sun, Mar 5, 2017 at 3:22 AM, Wanderer wrote: > > I mostly just lurk and view the post titles to see if something interesting > > is being discussed. This code gets me a web page without the spam. You need > > to compile i

Re: FYI: Removing posts with All Cap Authors

2017-03-04 Thread Chris Angelico
On Sun, Mar 5, 2017 at 3:22 AM, Wanderer wrote: > I mostly just lurk and view the post titles to see if something interesting > is being discussed. This code gets me a web page without the spam. You need > to compile it to a pyc file and create a bookmark. Probably not useful for > most people

FYI: Removing posts with All Cap Authors

2017-03-04 Thread Wanderer
I mostly just lurk and view the post titles to see if something interesting is being discussed. This code gets me a web page without the spam. You need to compile it to a pyc file and create a bookmark. Probably not useful for most people who don't use their browsers the way I do, but here it is

Re: Getting stdout and stderr from subprocess in correct order

2017-03-04 Thread Piet van Oostrum
"Ivan \"Rambius\" Ivanov" writes: > Dear colleagues, > > I using subprocess module and I am wondering how I can get the output > of the spawned process's stdout and stderr in the right order. Here > are my sample programs: > > $ cat subprc.py > import subprocess > import sys > > f = 'hw.py' > p =

Re: Getting stdout and stderr from subprocess in correct order

2017-03-04 Thread dieter
"Ivan \"Rambius\" Ivanov" writes: > ... > I using subprocess module and I am wondering how I can get the output > of the spawned process's stdout and stderr in the right order. Here > are my sample programs: > > $ cat subprc.py > import subprocess > import sys > > f = 'hw.py' > p = subprocess.run(