On 17/01/2014 05:42, vasishtha.sp...@gmail.com wrote:
> try:
> n = 0
> for dirpath, dirnames, filenames in os.walk(root):
> PdfOutputFileName = os.path.basename(dirpath) + ".pdf"
> c = canvas.Canvas(PdfOutputFileName)
> if n > 0 :
>for filena
On 17/01/2014 05:42, vasishtha.sp...@gmail.com wrote:
> On Thursday, January 16, 2014 12:07:59 PM UTC-8, Tim Golden wrote:
>>
>> Here's a quick example. This should walk down the Python directory,
>> creating a text file for each directory. The textfile will contain
>> the names of all the files i
On Thursday, January 16, 2014 12:07:59 PM UTC-8, Tim Golden wrote:
>
> Here's a quick example.
> This should walk down the Python directory, creating a text file for
> each directory. The textfile will contain the names of all the files in
> the directory. (NB this might create a lot of text fi
On Thursday, January 16, 2014 12:12:01 PM UTC-8, Tim Golden wrote:
> On 16/01/2014 20:07, Tim Golden wrote:
>
> > This should walk down the Python directory,
> s/the Python directory/some directory/
> (Sorry, I initially had it walking os.path.dirname(sys.executable))
> TJG
Thanks Tim thats very
On 16/01/2014 20:07, Tim Golden wrote:
This should walk down the Python directory,
s/the Python directory/some directory/
(Sorry, I initially had it walking os.path.dirname(sys.executable))
TJG
--
https://mail.python.org/mailman/listinfo/python-list
On 16/01/2014 19:50, vasishtha.sp...@gmail.com wrote:
On Thursday, January 16, 2014 11:41:04 AM UTC-8, Tim Golden wrote:
The usual go-to library for PDF generation is ReportLab. I haven't used
it for a long while but I'm quite certain it would have no problem
including images.
Do I take it
On 16/01/2014 19:50, vasishtha.sp...@gmail.com wrote:
On Thursday, January 16, 2014 11:41:04 AM UTC-8, Tim Golden wrote:
On 16/01/2014 19:11, Harry Spier wrote:
Dear list members,
I have a directory that contains about a hundred subdirectories named
J0001,J0002,J0003 . . . etc.
On Thursday, January 16, 2014 11:41:04 AM UTC-8, Tim Golden wrote:
> On 16/01/2014 19:11, Harry Spier wrote:
>
> >
>
> > Dear list members,
>
> >
>
> > I have a directory that contains about a hundred subdirectories named
>
> > J0001,J0002,J0003 . . . etc.
>
> > Each of these subdirectories c
On 16/01/2014 19:11, Harry Spier wrote:
Dear list members,
I have a directory that contains about a hundred subdirectories named
J0001,J0002,J0003 . . . etc.
Each of these subdirectories contains about a hundred JPEGs named
P001.jpg, P002.jpg, P003.jpg etc.
I need to write a python script that