pinokiod 3.2.193 → 3.2.195

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/py.js CHANGED
@@ -23,7 +23,7 @@ class Py {
23
23
  site_packages_root = this.kernel.bin.path("py/env/lib/python3.10/site-packages")
24
24
  }
25
25
  let module_paths = ["fastapi", "uvicorn", "importlib_metadata"].map((name) => {
26
- return path.resolve(site_packages_path, name)
26
+ return path.resolve(site_packages_root, name)
27
27
  })
28
28
  let exists3 = await this.kernel.exists(site_packages_root)
29
29
  let exists4 = true
package/kernel/index.js CHANGED
@@ -359,19 +359,19 @@ class Kernel {
359
359
  envs: this.envs
360
360
  })
361
361
  }
362
- console.log({ grant_permission })
363
- if (grant_permission) {
364
- if (this.platform === "win32") {
365
- console.log("2 Give full permission")
366
- await this.bin.exec({
367
- sudo: true,
368
- message: `icacls ${this.homedir} /grant Users:(OI)(CI)F /T`
369
- }, (stream) => {
370
- ondata(stream)
371
- })
372
- console.log("2 Give full permission done")
373
- }
374
- }
362
+ // console.log({ grant_permission })
363
+ // if (grant_permission) {
364
+ // if (this.platform === "win32") {
365
+ // console.log("2 Give full permission")
366
+ // await this.bin.exec({
367
+ // sudo: true,
368
+ // message: `icacls ${this.homedir} /grant Users:(OI)(CI)F /T`
369
+ // }, (stream) => {
370
+ // ondata(stream)
371
+ // })
372
+ // console.log("2 Give full permission done")
373
+ // }
374
+ // }
375
375
  })
376
376
  }
377
377
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.193",
3
+ "version": "3.2.195",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -2142,17 +2142,17 @@ class Server {
2142
2142
  // update the py module if it's already installed
2143
2143
  console.log("not up to date")
2144
2144
 
2145
- // give full permission to pinokio folder on windows
2146
- if (this.kernel.platform === "win32") {
2147
- console.log("1 Give full permission")
2148
- await this.kernel.bin.exec({
2149
- sudo: true,
2150
- message: `icacls ${this.kernel.homedir} /grant Users:(OI)(CI)F /T`
2151
- }, (stream) => {
2152
- ondata(stream)
2153
- })
2154
- console.log("1 Give full permission done")
2155
- }
2145
+ // // give full permission to pinokio folder on windows
2146
+ // if (this.kernel.platform === "win32") {
2147
+ // console.log("1 Give full permission")
2148
+ // await this.kernel.bin.exec({
2149
+ // sudo: true,
2150
+ // message: `icacls ${this.kernel.homedir} /grant Users:(OI)(CI)F /T`
2151
+ // }, (stream) => {
2152
+ // console.log({ stream })
2153
+ // })
2154
+ // console.log("1 Give full permission done")
2155
+ // }
2156
2156
 
2157
2157
 
2158
2158
  await new Promise((resolve, reject) => {