pinokiod 2.15.3 → 2.15.5
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 +3 -0
- package/kernel/shell.js +2 -1
- package/kernel/shells.js +2 -0
- package/package.json +1 -1
package/kernel/bin/index.js
CHANGED
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/shells.js
CHANGED
|
@@ -28,7 +28,9 @@ class Shells {
|
|
|
28
28
|
*/
|
|
29
29
|
async launch(params, options, ondata) {
|
|
30
30
|
// iterate through all the envs
|
|
31
|
+
console.log("------- params.env before", JSON.stringify(params.env, null, 2))
|
|
31
32
|
params.env = this.kernel.bin.envs(params.env)
|
|
33
|
+
console.log("------- params.env after", JSON.stringify(params.env, null, 2))
|
|
32
34
|
|
|
33
35
|
let exec_path = (params.path ? params.path : ".") // use the current path if not specified
|
|
34
36
|
let cwd = (options && options.cwd ? options.cwd : this.kernel.homedir) // if cwd exists, use it. Otherwise the cwd is pinokio home folder (~/pinokio)
|