I am having issues figuring out how I can go up a directory from my server running to run a python script. I am able to run a python script using the child process, {spawn}, however, I am unable to go up once, to the parent directory to run the python script.
The code I currently have works only if the file is in the current direcrtory
const b = brand+'.py'
const childPython = spawn('python3', [b]);
childPython.stdout.on('data', (data) =>{
console.log(`data: ${data}`)
})