pinokiod 3.6.1 → 3.6.2
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/api/index.js +3 -0
- package/kernel/bin/ffmpeg.js +1 -1
- package/kernel/bin/py.js +0 -1
- package/package.json +1 -1
- package/server/index.js +1 -3
package/kernel/api/index.js
CHANGED
|
@@ -1162,6 +1162,9 @@ class Api {
|
|
|
1162
1162
|
// let keypath = path.resolve(this.kernel.homedir, "key.json")
|
|
1163
1163
|
// this.kernel.keys = (await this.loader.load(keypath)).resolved
|
|
1164
1164
|
|
|
1165
|
+
// init shell before running just to make sure the environment variables are fresh
|
|
1166
|
+
await this.kernel.shell.init()
|
|
1167
|
+
|
|
1165
1168
|
if (request.uri){
|
|
1166
1169
|
this.counter++;
|
|
1167
1170
|
// API Call
|
package/kernel/bin/ffmpeg.js
CHANGED
package/kernel/bin/py.js
CHANGED
|
@@ -2,7 +2,6 @@ const fse = require('fs-extra')
|
|
|
2
2
|
const path = require('path')
|
|
3
3
|
class Py {
|
|
4
4
|
async install(req, ondata) {
|
|
5
|
-
// set the permission
|
|
6
5
|
await fse.remove(this.kernel.path('bin/py'))
|
|
7
6
|
await this.kernel.exec({
|
|
8
7
|
message: "git clone https://github.com/pinokiocomputer/python py",
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -2098,9 +2098,7 @@ class Server {
|
|
|
2098
2098
|
|
|
2099
2099
|
// determine port if port is not passed in
|
|
2100
2100
|
|
|
2101
|
-
if (
|
|
2102
|
-
this.port = options.port
|
|
2103
|
-
} else {
|
|
2101
|
+
if (!this.port) {
|
|
2104
2102
|
this.port = 42000
|
|
2105
2103
|
// let platform = os.platform()
|
|
2106
2104
|
// if (platform === 'linux') {
|