Fix path for (fake) XML etapes

This commit is contained in:
Emmanuel Viennet 2021-09-03 17:09:55 +02:00
parent a060cefbe8
commit 42ae898505
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class MyHttpRequestHandler(http.server.SimpleHTTPRequestHandler):
print(query_components, file=sys.stderr)
if "etapes" in self.path.lower():
self.path = "etapes.xml"
self.path = str(Path(script_dir / "etapes.xml").relative_to(Path.cwd()))
elif "scodocEtudiant" in self.path:
# 2 forms: nip=xxx or etape=eee&annee=aaa
if "nip" in query_components: