Re: [Tutor] Find files without __doc__ strings

2009-05-16 Thread spir
Le Sat, 16 May 2009 21:46:02 -0400, David s'exprima ainsi: > I am doing an exercise in Wesley Chun's book. Find files in the standard > library modules that have doc strings. Then find the ones that don't, > "the shame list". I came up with this to find the ones with; > #!/usr/bin/python > im

Re: [Tutor] Allow only one instance of a process

2009-05-16 Thread Vince Spicer
simple solution would be to create a lock file before processing, lock = open("videoname.lck") lock.close() On Saturday 16 May 2009 8:26:31 pm Sylvain Ste-Marie wrote: > I'm currently writing a script to batch convert video for my psp > > It basically looks into a folder for video and launch

[Tutor] Allow only one instance of a process

2009-05-16 Thread Sylvain Ste-Marie
I'm currently writing a script to batch convert video for my psp It basically looks into a folder for video and launch ffmpeg: ffmpeg -i "videoname" -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 368x208 "videoname.mp4" my idea is basically to check for pid but how do i do that? _

[Tutor] Find files without __doc__ strings

2009-05-16 Thread David
I am doing an exercise in Wesley Chun's book. Find files in the standard library modules that have doc strings. Then find the ones that don't, "the shame list". I came up with this to find the ones with; #!/usr/bin/python import os import glob import fileinput import re pypath = "/usr/lib/pyth