I have a Electron project which executes some python script using NodeJS\'s child_process module. My python script is in the root folder of my project.
Here\'s how I cal
You can include the script in extraResources:
"build": { "extraResources": "python_scripts", ...
And then the dir will be at the app root:
let python = spawn('python', [path.join(app.getAppPath(), '..', 'python_scripts/my_script.py'])