pinokiod 3.19.78 → 3.19.79

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.
Files changed (2) hide show
  1. package/kernel/util.js +8 -1
  2. package/package.json +1 -1
package/kernel/util.js CHANGED
@@ -78,7 +78,14 @@ const filepicker = async(req, ondata, kernel) => {
78
78
  console.log("Filetypes", req.params.filetypes)
79
79
  let response = await new Promise((resolve, reject) => {
80
80
  let picker_path = kernel.path("bin/py/picker.py")
81
- const proc = spawn("python", [picker_path])
81
+ let python
82
+ if (kernel.platform === "win32") {
83
+ python = kernel.path("bin/miniconda/python")
84
+ } else {
85
+ python = kernel.path("bin/miniconda/bin/python")
86
+ }
87
+ console.log("run python", { python, picker_path })
88
+ const proc = spawn(python, [picker_path])
82
89
 
83
90
  let output = "";
84
91
  proc.stdout.on("data", (chunk) => output += chunk);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.19.78",
3
+ "version": "3.19.79",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {