Commit ef6f8b25 authored by Jérome Perrin's avatar Jérome Perrin

chromedriver

parent 0b86435d
...@@ -28,7 +28,7 @@ recipe = slapos.recipe.build ...@@ -28,7 +28,7 @@ recipe = slapos.recipe.build
location = ${buildout:bin-directory}/${:wrapper-name} location = ${buildout:bin-directory}/${:wrapper-name}
script = script =
chromedriver = self.options['part'] chromedriver = self.options['part']
part = self.buildout[os.path.basename(chromium)] part = self.buildout[os.path.basename(chromedriver)]
with open(%(location)r, 'w') as f: with open(%(location)r, 'w') as f:
f.write("""#!/bin/sh -e f.write("""#!/bin/sh -e
cd {} cd {}
...@@ -36,7 +36,7 @@ script = ...@@ -36,7 +36,7 @@ script =
export PATH={}:$PATH export PATH={}:$PATH
exec ./chromedriver "$@" exec ./chromedriver "$@"
""".format( """.format(
chromium, chromedriver,
':'.join(part['library'].split()), ':'.join(part['library'].split()),
':'.join(part['path'].split()), ':'.join(part['path'].split()),
)) ))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment