[Tutor] import glob.glob('*.py')
János Juhász
janos.juhasz at VELUX.com
Mon Jan 8 13:56:23 CET 2007
Hi All,
I am playing with reportlab and I would like to make a directory where I
can place all of my projects as ___.py files.
A project file should be like this:
test.py--------
title="Test project"
duedate = '2007-02-28'
description = "description _________"
detailed="""
detaileddetaileddetaileddetaileddetaileddetaileddetailed
detaileddetaileddetaileddetaileddetaileddetaileddetailed
detaileddetaileddetaileddetaileddetaileddetaileddetailed
detaileddetaileddetaileddetaileddetaileddetaileddetailed
detaileddetaileddetaileddetaileddetaileddetaileddetailed
"""
test.py--------
I plan to make a python script, that collect all the projectfiles from
that folder and render them as a report summary.
I planned to import these files as modules like
for filename in glob.glob('*.py'):
if '_' in filename: continue
import filename
render(filename)
Probably you have better ideas to do that.
Yours sincerely,
______________________________
Janos Juhasz
More information about the Tutor
mailing list