Skip to content
Snippets Groups Projects
Unverified Commit 8c9df6ee authored by Wouter Deconinck's avatar Wouter Deconinck Committed by GitHub
Browse files

fix: use shell to write .matplotlibrc

parent 1bc85cfe
No related branches found
No related tags found
No related merge requests found
...@@ -101,11 +101,14 @@ exec ddsim \ ...@@ -101,11 +101,14 @@ exec ddsim \
rule matplotlibrc: rule matplotlibrc:
output: output:
".matplotlibrc", ".matplotlibrc",
run: shell:
with open(output[0], "wt") as fp: """
fp.write("backend: Agg\n") cat > {output} <<EOF
# interactive mode prevents plt.show() from blocking backend: Agg
fp.write("interactive : True\n") # interactive mode prevents plt.show() from blocking
interactive: True
EOF
"""
rule org2py: rule org2py:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment