Skip to content

Commit

Permalink
Clean up Python server example...
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Aug 20, 2024
1 parent d8fa93e commit 3593c94
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions manual/src/hyperlinks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3593c94

Please sign in to comment.