diff options
| author | Théo Zimmermann | 2020-05-16 19:09:39 +0200 |
|---|---|---|
| committer | Théo Zimmermann | 2020-05-16 19:09:39 +0200 |
| commit | 05e811a81de90ce698c4f0317d549dc01dc13e17 (patch) | |
| tree | 1f963703d2f4930737c51bfa954e493a643bcd11 /doc | |
| parent | accac86855ce0ca6e5e18efe88aeb7d46785fcc6 (diff) | |
| parent | 632f709b95f4fa47e86e5c498b995eb9c2cf2ff6 (diff) | |
Merge PR #12277: Checking validity of coqdoc file name (fixes #12265)
Reviewed-by: Zimmi48
Ack-by: randomdross
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/tools/coqrst/coqdoc/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tools/coqrst/coqdoc/main.py b/doc/tools/coqrst/coqdoc/main.py index de0d912c03..522b9900a5 100644 --- a/doc/tools/coqrst/coqdoc/main.py +++ b/doc/tools/coqrst/coqdoc/main.py @@ -36,7 +36,7 @@ COQDOC_HEADER = "".join("(** remove printing {} *)".format(s) for s in COQDOC_SY def coqdoc(coq_code, coqdoc_bin=None): """Get the output of coqdoc on coq_code.""" coqdoc_bin = coqdoc_bin or os.path.join(os.getenv("COQBIN", ""), "coqdoc") - fd, filename = mkstemp(prefix="coqdoc-", suffix=".v") + fd, filename = mkstemp(prefix="coqdoc_", suffix=".v") if platform.system().startswith("CYGWIN"): # coqdoc currently doesn't accept cygwin style paths in the form "/cygdrive/c/..." filename = check_output(["cygpath", "-w", filename]).decode("utf-8").strip() |
