pinokiod 1.0.48 → 1.0.49

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.
@@ -101,7 +101,7 @@ class FS {
101
101
  // {
102
102
  // “method”: “fs.share”,
103
103
  // “params”: {
104
- // "pip": "app/env"
104
+ // "venv": "app/env"
105
105
  // }
106
106
  // }
107
107
  //
@@ -109,14 +109,14 @@ class FS {
109
109
 
110
110
  ondata({ raw: "\r\ncreating a shared drive:\r\n" + JSON.stringify(req.params, null, 2).replace(/\n/g, "\r\n") })
111
111
 
112
- if (req.params.pip) {
112
+ if (req.params.venv) {
113
113
  // pip sharing
114
114
  // 1. get all pip items
115
115
  let p
116
116
  if (kernel.platform === "win32") {
117
- p = path.resolve(req.cwd, req.params.pip, "Lib", "site-packages")
117
+ p = path.resolve(req.cwd, req.params.venv, "Lib", "site-packages")
118
118
  } else {
119
- p = path.resolve(req.cwd, req.params.pip, "lib", "python3.10", "site-packages")
119
+ p = path.resolve(req.cwd, req.params.venv, "lib", "python3.10", "site-packages")
120
120
  }
121
121
  const res = await kernel.python.call(
122
122
  "pip",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.0.48",
3
+ "version": "1.0.49",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {