Revert "ajout commentaires sur les usages possibles"
This reverts commit f162f321d1.
This commit is contained in:
parent
f162f321d1
commit
0219df17df
1 changed files with 0 additions and 23 deletions
23
genlog.py
23
genlog.py
|
|
@ -1,23 +0,0 @@
|
||||||
import subprocess
|
|
||||||
import os
|
|
||||||
|
|
||||||
entree = os.open("./index.gmi", os.O_RDONLY)
|
|
||||||
sortie = os.open("./temp.html", os.O_WRONLY)
|
|
||||||
|
|
||||||
subprocess.run(
|
|
||||||
"gmnitohtml",
|
|
||||||
stdin=entree,
|
|
||||||
stdout=sortie,
|
|
||||||
stderr=None,
|
|
||||||
shell=True,
|
|
||||||
timeout=None,
|
|
||||||
)
|
|
||||||
|
|
||||||
header = os.open("./html/header.html", os.O_RDONLY)
|
|
||||||
body = os.open("./temp.html", os.O_RDONLY)
|
|
||||||
footer = os.open("./html/footer.html", os.O_RDONLY)
|
|
||||||
fichier = os.open("./out.html", os.O_APPEND)
|
|
||||||
|
|
||||||
fichier = header + body + footer
|
|
||||||
for line in header:
|
|
||||||
print(line)
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue