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

component/firefox: use .format string subsitutions

so that we don't have to escape % as %%
parent 654ac2e1
......@@ -37,11 +37,11 @@ script =
part = self.buildout[os.path.basename(firefox)]
with open(%(location)r, 'w') as f:
f.write("""#!/bin/sh -e
cd %%s
export LD_LIBRARY_PATH=$PWD:%%s
export PATH=%%s:$PATH
cd {}
export LD_LIBRARY_PATH=$PWD:{}
export PATH={}:$PATH
exec ./firefox "$@" 2>/dev/null
""" %% (
""".format(
firefox,
':'.join(part['library'].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