aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-08-20 07:39:22 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-08-20 07:39:22 -0400
commitafdcb735520ed114214f814dc333214ef660a0b0 (patch)
tree5bf398849daf53c6e0ff705a9879b580e4208de3
parenta154afb5f34b864dcd1125d17d154762b69983ee (diff)
Use current directory for Node REPL •path, not location of bqn.js
-rwxr-xr-xbqn.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bqn.js b/bqn.js
index 850e0ef5..3c9efff4 100755
--- a/bqn.js
+++ b/bqn.js
@@ -132,7 +132,7 @@ if (!module.parent) {
let arg0 = args[0];
let cl_state = () => {
let s = str("");
- return [str(dir(path.resolve(__dirname))), s, list([],s)];
+ return [str(dir(path.resolve('.'))), s, list([],s)];
}
let exec = fn => src => {
try {