summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2024-08-20 10:37:14 -0400
committerDan Davison <dandavison7@gmail.com>2024-08-20 10:37:14 -0400
commit3593c944b109ff2415744e9e0a53fe8de3ee9f2d (patch)
tree3cb5c2b380be9650667cabb00fb007af18a3d869
parentd8fa93eded6c952155713a517de159b7bfbd9bac (diff)
Clean up Python server example...
-rw-r--r--manual/src/hyperlinks.md4
1 files changed, 1 insertions, 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)