|
|
@ -149,11 +149,10 @@ class Bureau(object):
|
|
|
|
self.api = {}
|
|
|
|
self.api = {}
|
|
|
|
|
|
|
|
|
|
|
|
modpath = os.path.dirname(__file__)
|
|
|
|
modpath = os.path.dirname(__file__)
|
|
|
|
xvfb = "xvfb-run"
|
|
|
|
|
|
|
|
slimerjs = os.path.join(modpath, "..", "lib", "slimerjs", "slimerjs")
|
|
|
|
slimerjs = os.path.join(modpath, "..", "lib", "slimerjs", "slimerjs")
|
|
|
|
renderer = os.path.join(modpath, "..", "slimerjs", "rasterize.js")
|
|
|
|
renderer = os.path.join(modpath, "..", "slimerjs", "rasterize.js")
|
|
|
|
self.slimerjs = os.path.abspath(slimerjs)
|
|
|
|
self.slimerjs = os.path.abspath(slimerjs)
|
|
|
|
self.html2pdf = xvfb + " " + self.slimerjs + " " + \
|
|
|
|
self.html2pdf = self.slimerjs + " --headless " + \
|
|
|
|
os.path.abspath(renderer) + " "
|
|
|
|
os.path.abspath(renderer) + " "
|
|
|
|
mypath = inspect.getfile(self.__class__)
|
|
|
|
mypath = inspect.getfile(self.__class__)
|
|
|
|
self.mdir = os.path.dirname(mypath)
|
|
|
|
self.mdir = os.path.dirname(mypath)
|
|
|
|