Commit 25e295c9 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 ab41dcb4
......@@ -29,11 +29,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