Did I find the right examples for you? yes no

All Samples(8)  |  Call(5)  |  Derive(0)  |  Import(3)

        def data_file_path(filename, data_subdir="data"):
    base_dir = __path__[0]
    return os.path.join(base_dir, data_subdir, filename)
        


src/w/h/whiff-1.1/whiff/middleware/png/bnfImage.py   whiff(Download)
# import must be absolute
from whiff.middleware import misc
from whiff.middleware import data_file_path
 
class bnfImage(misc.utility):
    def __init__(self, page):
        self.page = page
    def __call__(self, env, start_response):
        bnftext = self.param_value(self.page, env).strip()
        fontdir = data_file_path("")

src/w/h/whiff-1.1/whiff/middleware/png/pieChart.py   whiff(Download)
                SHADES[ (i*5/4+3) % NSHADES])
               for i in range(25) ]
    fontPath = middleware.data_file_path("propell.bdf")
    fontScale = 1.0
    fontRadius = None

src/w/h/whiff-1.1/whiff/middleware/png/barChart.py   whiff(Download)
class BarChartBase:
    axisColor = (0xff, 0, 0)
    labelColor = (0, 0xff, 0)
    barColor = (0, 0, 0xff)
    fontPath = middleware.data_file_path("propell.bdf")

src/w/h/whiff-1.1/whiff/middleware/png/SchemaDiagram.py   whiff(Download)
# import must be absolute
from whiff.middleware import misc
from whiff.middleware import data_file_path
from whiff import whiffenv
from whiff.rdjson import jsonParse
        xmax = self.param_json(self.xmax, env)
        ymax = self.param_json(self.ymax, env)
        fontdir = data_file_path("")
        c = bnf.getc(fontdir)
        if xmax and ymax:

src/w/h/whiff-1.1/whiff/middleware/png/ERdiagram.py   whiff(Download)
# import must be absolute
from whiff.middleware import misc
from whiff.middleware import data_file_path
from whiff import whiffenv
from whiff.rdjson import jsonParse
        #pr "ERdiagram adjust=", repr(adjust)
        rulePath = self.param_json(self.rulePath, env)
        fontdir = data_file_path("")
        c = bnf.getc(fontdir)
        if xmax and ymax: