Skip to content

Commit ba3bc99

Browse files
committed
Remove printlns
1 parent bde02af commit ba3bc99

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
@@ -3,12 +3,11 @@ function refresh!(path, original_options, options = original_options)
33
if haskey(options, "project") && haskey(options["project"], "execute-dir")
44
ed = options["project"]["execute-dir"]
55
if ed == "directory"
6-
println("cd(dirname(path))")
76
cd(dirname(path))
87
elseif ed == "project"
98
# TODO: this doesn't seem right. How does one get the root path of the project here?
109
# Maybe piggyback on `options` with some ridiculous identifier?
11-
println("cd(NotebookState.PROJECT[])")
10+
# We can't rely on `pwd`, because the notebook can change that.
1211
if isfile(NotebookState.PROJECT[])
1312
cd(dirname(NotebookState.PROJECT[]))
1413
elseif isdir(NotebookState.PROJECT[])
@@ -17,7 +16,6 @@ function refresh!(path, original_options, options = original_options)
1716
@warn "Project path not found: $(NotebookState.PROJECT[])"
1817
end
1918
else
20-
println("cd(abspath(options[\"execute-dir\"])) => cd($(abspath(ed)))")
2119
cd(abspath(ed))
2220
end
2321
else

0 commit comments

Comments
 (0)