Skip to content

Commit ee533a6

Browse files
committed
fix kernel lookup path in debug client
1 parent 7f7ea32 commit ee533a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/kcclient/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ fn jupyter_dir() -> PathBuf {
361361

362362
#[cfg(not(target_os = "macos"))]
363363
fn jupyter_dir() -> PathBuf {
364-
let dir = directories::ProjectDirs::from("Jupyter", "", "").unwrap();
364+
let dir = directories::ProjectDirs::from("", "", "jupyter").unwrap();
365365
dir.data_dir().to_path_buf()
366366
}
367367

@@ -422,6 +422,8 @@ fn main() {
422422
.join(kernel.clone())
423423
.join("kernel.json");
424424

425+
log::debug!("Looking for kernel.json in {:?}", kernel_spec_json);
426+
425427
// Parse the kernel spec from the JSON file using the serde json library
426428
let kernel_spec: kernel_spec::KernelSpec =
427429
serde_json::from_reader(std::fs::File::open(kernel_spec_json).unwrap())

0 commit comments

Comments
 (0)