aboutsummaryrefslogtreecommitdiff
path: root/src/NeoRuntimeManager
diff options
context:
space:
mode:
authorjakobst1n <jakob.stendahl@outlook.com>2021-10-03 18:36:12 +0200
committerjakobst1n <jakob.stendahl@outlook.com>2021-10-03 18:48:14 +0200
commit8fe3b246a12d409b0819b574a050b64ca96ce251 (patch)
treeda93ea8040d4d3029b5921b49fde19659827e841 /src/NeoRuntimeManager
parent7bdce37fd3f18e2712e18c4e2c64cac69af0aca1 (diff)
downloadLuxcena-Neo-8fe3b246a12d409b0819b574a050b64ca96ce251.tar.gz
Luxcena-Neo-8fe3b246a12d409b0819b574a050b64ca96ce251.zip
:boom: Change paths to be in normal linux locations
Diffstat (limited to 'src/NeoRuntimeManager')
-rw-r--r--src/NeoRuntimeManager/RuntimeProcess.js4
-rw-r--r--src/NeoRuntimeManager/index.js8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/NeoRuntimeManager/RuntimeProcess.js b/src/NeoRuntimeManager/RuntimeProcess.js
index 60f6a28..0058382 100644
--- a/src/NeoRuntimeManager/RuntimeProcess.js
+++ b/src/NeoRuntimeManager/RuntimeProcess.js
@@ -32,8 +32,8 @@ class RuntimeProcess {
"python3",
[
"-u", // This makes us able to get real-time output
- `${__basedir}/NeoRuntime/Runtime/neo_runtime.py`,
- `--strip-config="${__datadir}/config/strip.ini"`,
+ `${__appdir}/NeoRuntime/Runtime/neo_runtime.py`,
+ `--strip-config="${__configdir}/strip.ini"`,
`--mode-path="${this.modePath}"`,
`--mode-entry=script`
]
diff --git a/src/NeoRuntimeManager/index.js b/src/NeoRuntimeManager/index.js
index 62acb8a..e4718e4 100644
--- a/src/NeoRuntimeManager/index.js
+++ b/src/NeoRuntimeManager/index.js
@@ -8,7 +8,7 @@
const fs = require("fs");
const fsPromises = fs.promises;
const RuntimeProcess = require("./RuntimeProcess");
-let logger = require(__basedir + "/src/logger");
+let logger = require(__appdir + "/src/Logger");
const EventEmitter = require('events');
/** @type {object} this should be a pointer to a object referencing all neoModules (see app.js) */
@@ -51,7 +51,7 @@ function isMode(path) {
*/
function listModes() {
let modeDirs = [
- ["builtin/", fs.readdirSync(__basedir + "/NeoRuntime/builtin")],
+ ["builtin/", fs.readdirSync(__appdir + "/NeoRuntime/builtin")],
["remote/", fs.readdirSync(__datadir + "/remoteCode")],
["user/", fs.readdirSync(__datadir + "/userCode")]
]
@@ -167,7 +167,7 @@ function getModePath(modeId) {
let location = path.splice(0, 1).toString();
if (location === "user") { path = __datadir + "/userCode/" + path.join("/"); }
if (location === "remote") { path = __datadir + "/remoteCode/" + path.join("/"); }
- if (location === "builtin") { path = __basedir + "/NeoRuntime/builtin/" + path.join("/"); }
+ if (location === "builtin") { path = __appdir + "/NeoRuntime/builtin/" + path.join("/"); }
return path;
}
@@ -306,4 +306,4 @@ module.exports = (_neoModules) => {
startDebugger, stopDebugger, saveModeCode,
startMode, stopMode, restartMode
}
-}; \ No newline at end of file
+};