pinokiod 3.8.49 → 3.8.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/bin/index.js +5 -0
- package/package.json +1 -1
package/kernel/bin/index.js
CHANGED
|
@@ -330,11 +330,13 @@ class Bin {
|
|
|
330
330
|
let to_reset_exists = false
|
|
331
331
|
for(let module_path of module_paths) {
|
|
332
332
|
let e = await this.kernel.exists(module_path)
|
|
333
|
+
console.log("checking kernel exists", { module_path, e })
|
|
333
334
|
if (e) {
|
|
334
335
|
to_reset_exists = true
|
|
335
336
|
break;
|
|
336
337
|
}
|
|
337
338
|
}
|
|
339
|
+
console.log("> to_reset_exists", to_reset_exists)
|
|
338
340
|
if (to_reset_exists) {
|
|
339
341
|
this.correct_conda = false
|
|
340
342
|
} else {
|
|
@@ -342,9 +344,12 @@ class Bin {
|
|
|
342
344
|
// process.stdout.write(stream.raw)
|
|
343
345
|
// console.log("conda list check", { stream })
|
|
344
346
|
})
|
|
347
|
+
console.log("> res", res)
|
|
345
348
|
|
|
346
349
|
let lines = res.response.split(/[\r\n]+/)
|
|
350
|
+
console.log("> lines", lines)
|
|
347
351
|
for(let line of lines) {
|
|
352
|
+
console.log("> start", start)
|
|
348
353
|
if (start) {
|
|
349
354
|
let chunks = line.split(/\s+/).filter(x => x)
|
|
350
355
|
if (chunks.length > 2) {
|