add passing super.json path parameter on camera.js run

audio-only-out-and-refactor-monitor-settings
Moe 2023-01-20 16:24:38 -08:00
parent 23f710a206
commit 959cd0452e
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,8 @@
module.exports = function(s){
const configLocation = process.argv[2]
const superLocation = process.argv[3]
s.location = {
super : s.mainDirectory+'/super.json',
super : superLocation && superLocation.endsWith('.json') ? superLocation : s.mainDirectory+'/super.json',
config : configLocation && configLocation.endsWith('.json') ? configLocation : s.mainDirectory+'/conf.json',
languages : s.mainDirectory+'/languages'
}