pinokiod 2.15.2 → 2.15.4
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/shell.js +2 -1
- package/kernel/sysinfo.js +10 -0
- package/package.json +1 -1
package/kernel/shell.js
CHANGED
|
@@ -89,6 +89,7 @@ class Shell {
|
|
|
89
89
|
// 2. env
|
|
90
90
|
// default env
|
|
91
91
|
|
|
92
|
+
console.log(">>>>> process.env=", JSON.stringify(process.env, null, 2))
|
|
92
93
|
|
|
93
94
|
this.env = Object.assign({}, process.env)
|
|
94
95
|
// If the user has set PYTHONPATH, unset it.
|
|
@@ -652,7 +653,7 @@ class Shell {
|
|
|
652
653
|
|
|
653
654
|
config.env = this.env
|
|
654
655
|
|
|
655
|
-
console.log("ENV", JSON.stringify(config.env, null, 2))
|
|
656
|
+
console.log("CONFIG.ENV", JSON.stringify(config.env, null, 2))
|
|
656
657
|
|
|
657
658
|
if (!this.ptyProcess) {
|
|
658
659
|
// ptyProcess doesn't exist => create
|
package/kernel/sysinfo.js
CHANGED
|
@@ -100,6 +100,16 @@ class Sysinfo {
|
|
|
100
100
|
} else {
|
|
101
101
|
cmd = "env"
|
|
102
102
|
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
console.log("############### DEBUGGING ENV")
|
|
106
|
+
let _res = await this.kernel.bin.exec({ message: cmd, conda: { skip: true } }, (stream) => {
|
|
107
|
+
})
|
|
108
|
+
console.log(_res)
|
|
109
|
+
console.log("############### DEBUGGING ENV FINISH")
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
103
113
|
let res = await this.kernel.bin.exec({ message: cmd }, (stream) => {
|
|
104
114
|
})
|
|
105
115
|
let lines = res.response.split(/[\r\n]+/)
|