Skip to content

Commit

Permalink
Set syspath in netrepl server handler
Browse files Browse the repository at this point in the history
  • Loading branch information
sogaiu committed Dec 25, 2023
1 parent d644da0 commit ed0d7a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spork/netrepl.janet
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,13 @@
(default port default-port)
(eprint "Starting networked repl server on " host ", port " port "...")
(def name-set @{})
(def syspath (dyn :syspath))
(net/server
host port
(fn repl-handler [stream]

# Setup closures and state
(setdyn :syspath syspath)
(var name "<unknown>")
(var last-flush 0)
(def outbuf @"")
Expand Down

0 comments on commit ed0d7a8

Please sign in to comment.