From 3593c944b109ff2415744e9e0a53fe8de3ee9f2d Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Tue, 20 Aug 2024 10:37:14 -0400 Subject: Clean up Python server example... --- manual/src/hyperlinks.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/manual/src/hyperlinks.md b/manual/src/hyperlinks.md index 3e4ef21..d6caaed 100644 --- a/manual/src/hyperlinks.md +++ b/manual/src/hyperlinks.md @@ -46,9 +46,7 @@ If your editor does not have its own URL protocol, then there are still many pos query = parse_qs(urlparse(self.path).query) [path], [line] = query["path"], query["line"] # TODO: Replace with the appropriate command for your editor - cwd = Path(path).parent - print("cwd", cwd) - call(["code", "-g", f"{path}:{line}"], cwd=cwd) + call(["code", "-g", f"{path}:{line}"], cwd=Path(path).parent) self.send_response(200) else: self.send_response(404) -- cgit v1.2.3