Revert "ajout commentaires sur les usages possibles"

This reverts commit f162f321d1.
This commit is contained in:
OniriCorpe 2022-05-07 01:02:10 +02:00
parent f162f321d1
commit 0219df17df

View file

@ -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)