Skip to content

Commit f4c2e59

Browse files
committed
Remove printlns
1 parent 91dd783 commit f4c2e59

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/QuartoNotebookWorker/src/refresh.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ function refresh!(path, original_options, options = original_options)
55
if haskey(options, "project") && haskey(options["project"], "execute-dir")
66
ed = options["project"]["execute-dir"]
77
if ed == "directory"
8-
println("cd(dirname(path))")
98
cd(dirname(path))
109
elseif ed == "project"
1110
# TODO: this doesn't seem right. How does one get the root path of the project here?
1211
# Maybe piggyback on `options` with some ridiculous identifier?
13-
println("cd(NotebookState.PROJECT[])")
12+
# We can't rely on `pwd`, because the notebook can change that.
1413
if isfile(NotebookState.PROJECT[])
1514
cd(dirname(NotebookState.PROJECT[]))
1615
elseif isdir(NotebookState.PROJECT[])
@@ -19,7 +18,6 @@ function refresh!(path, original_options, options = original_options)
1918
@warn "Project path not found: $(NotebookState.PROJECT[])"
2019
end
2120
else
22-
println("cd(abspath(options[\"execute-dir\"])) => cd($(abspath(ed)))")
2321
cd(abspath(ed))
2422
end
2523
else

0 commit comments

Comments
 (0)