From 42ae898505c89ebcd03b7ad59c5eecb05e416354 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 3 Sep 2021 17:09:55 +0200 Subject: [PATCH] Fix path for (fake) XML etapes --- tools/fakeportal/fakeportal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/fakeportal/fakeportal.py b/tools/fakeportal/fakeportal.py index 43ae68a5c3..9fdbcd01cc 100755 --- a/tools/fakeportal/fakeportal.py +++ b/tools/fakeportal/fakeportal.py @@ -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: