reportlab/demos/tests/testdemos.py
changeset 1677 1450177dd19e
parent 494 54257447cfe9
child 1683 7fa753e4420a
equal deleted inserted replaced
1676:babec3b2f097 1677:1450177dd19e
     1 #!/bin/env python
     1 #!/bin/env python
     2 #copyright ReportLab Inc. 2000
     2 #copyright ReportLab Inc. 2000
     3 #see license.txt for license details
     3 #see license.txt for license details
     4 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/demos/tests/testdemos.py?cvsroot=reportlab
     4 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/demos/tests/testdemos.py?cvsroot=reportlab
     5 #$Header: /tmp/reportlab/reportlab/demos/tests/testdemos.py,v 1.5 2000/10/25 08:57:45 rgbecker Exp $
     5 #$Header: /tmp/reportlab/reportlab/demos/tests/testdemos.py,v 1.6 2002/07/17 22:46:22 andy_robinson Exp $
     6 __version__=''' $Id: testdemos.py,v 1.5 2000/10/25 08:57:45 rgbecker Exp $ '''
     6 __version__=''' $Id: testdemos.py,v 1.6 2002/07/17 22:46:22 andy_robinson Exp $ '''
     7 __doc__='Test all demos'
     7 __doc__='Test all demos'
     8 _globals=globals().copy()
     8 _globals=globals().copy()
     9 import os, sys
     9 import os, sys
    10 from reportlab import pdfgen
    10 from reportlab import pdfgen
    11 
    11 
    12 for p in ('pythonpoint/pythonpoint.py','stdfonts/stdfonts.py','odyssey/odyssey.py', 'gadflypaper/gfe.py'):
    12 for p in ('pythonpoint/pythonpoint.py','stdfonts/stdfonts.py','odyssey/odyssey.py', 'gadflypaper/gfe.py'):
    13 	fn = os.path.normcase(os.path.normpath(os.path.join(os.path.dirname(pdfgen.__file__),'..','demos',p)))
    13     fn = os.path.normcase(os.path.normpath(os.path.join(os.path.dirname(pdfgen.__file__),'..','demos',p)))
    14 	os.chdir(os.path.dirname(fn))
    14     os.chdir(os.path.dirname(fn))
    15 	execfile(fn,_globals.copy())
    15     execfile(fn,_globals.copy())