Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(48)  |  Call(0)  |  Derive(0)  |  Import(48)

src/m/w/mwlib.ext-0.13.2/upstream-src/docs/genAll.py   mwlib.ext(Download)
def _genAll(verbose=1):
    from reportlab.lib.testutils import setOutDir
    setOutDir(__name__)
    from reportlab.lib.testutils import testsFolder
    topDir=os.path.dirname(testsFolder)

src/r/e/reportlab-3.1.8/docs/genAll.py   reportlab(Download)
def _genAll(verbose=1):
    from reportlab.lib.testutils import setOutDir
    setOutDir(__name__)
    from reportlab.lib.testutils import testsFolder
    topDir=os.path.dirname(testsFolder)

src/r/e/ReportLab-HEAD/docs/genAll.py   ReportLab(Download)
def _genAll(verbose=1):
    from reportlab.lib.testutils import setOutDir
    setOutDir(__name__)
    from reportlab.lib.testutils import testsFolder
    topDir=os.path.dirname(testsFolder)

src/r/e/ReportLab-HEAD/tests/test_source_chars.py   ReportLab(Download)
from reportlab.lib.testutils import setOutDir,makeSuiteForClasses, outputfile, SecureTestCase, GlobDirectoryWalker, printLocation
setOutDir(__name__)
from reportlab.lib.testutils import RL_HOME,testsFolder
__version__=''' $Id: test_source_chars.py 3660 2010-02-08 18:17:33Z damian $ '''
import os, sys, glob, string, re

src/r/e/ReportLab-HEAD/tests/test_platypus_tables.py   ReportLab(Download)
 
    lst.append(PageBreak())
    from reportlab.lib.testutils import testsFolder
    I = Image(os.path.join(os.path.dirname(testsFolder),'tools','pythonpoint','demos','leftlogo.gif'))
    I.drawHeight = 1.25*inch*I.drawHeight / I.drawWidth

src/r/e/ReportLab-HEAD/tests/test_platypus_paragraphs.py   ReportLab(Download)
'''
        from reportlab.platypus.flowables import ParagraphAndImage, Image
        from reportlab.lib.testutils import testsFolder
        gif = os.path.join(testsFolder,'pythonpowered.gif')
        story.append(ParagraphAndImage(Paragraph(text,bt),Image(gif)))
'''
        from reportlab.platypus.flowables import ImageAndFlowables, Image
        from reportlab.lib.testutils import testsFolder
        gif = os.path.join(testsFolder,'pythonpowered.gif')
        heading = Paragraph('This is a heading',h3)
                        ])
 
        from reportlab.lib.testutils import testsFolder
        styleSheet = getSampleStyleSheet()
        normal = ParagraphStyle(name='normal',fontName='Times-Roman',fontSize=12,leading=1.2*12,parent=styleSheet['Normal'])

src/r/e/ReportLab-HEAD/tests/test_platypus_general.py   ReportLab(Download)
from reportlab.lib.utils import haveImages, _RL_DIR, rl_isfile, open_for_read, fileName2Utf8
import unittest
from reportlab.lib.testutils import testsFolder
if haveImages:
    _GIF = os.path.join(testsFolder,'pythonpowered.gif')

src/r/e/ReportLab-HEAD/tests/test_pdfgen_pycanvas.py   ReportLab(Download)
    c.drawText(t)
    import tests
    from reportlab.lib.testutils import testsFolder
    gif = os.path.join(testsFolder,'pythonpowered.gif')
    if haveImages and rl_isfile(gif):

src/r/e/ReportLab-HEAD/tests/test_pdfgen_general.py   ReportLab(Download)
 
    if haveImages:
        from reportlab.lib.testutils import testsFolder
        gif = os.path.join(testsFolder,'pythonpowered.gif')
        c.drawInlineImage(gif,2*inch, 7*inch)
    c.rect(3*inch, 6+14.4*inch, w, h)
    if haveImages:
        from reportlab.lib.testutils import testsFolder
        png = os.path.join(testsFolder,'solid_red_alpha.png')
        c.drawImage(png, 1*inch, 8*inch+14.4, w, h, mask=None)

src/r/e/ReportLab-HEAD/tests/test_lib_utils.py   ReportLab(Download)
def _rel_open_and_read(fn):
    from reportlab.lib.utils import open_and_read
    from reportlab.lib.testutils import testsFolder
    cwd = os.getcwd()
    os.chdir(testsFolder)
    def test2(self):
        "try under a well known directory NOT on the path"
        from reportlab.lib.testutils import testsFolder
        D = os.path.join(testsFolder,'..','tools','pythonpoint')
        fn = os.path.join(D,'stdparser.py')

  1 | 2 | 3 | 4  Next