0

i am trying to use the svgedit as a base project and add custom buttons to call a specific python file. I install and run the svgedit like this:

1- Clone or copy the repository contents
2- run npm i to install dependencies
3- run npm run start to start a local server
4- Use your browser to access http://localhost:8000/src/editor/index.html

I have tried to call my python script with the node module python-shell with require(), but require() is not found on the client side. I than found this answer here but i dont know where to add the code in svgedit server side (in which file?)

In the package.json there is a "scripts" list and i am calling node run start and start means
"start": "web-dev-server --app-index src/editor/index.html --open --node-resolve",

Is it possible to run a pyhton script with virtual interpreter on the server side from a client call in svgedit?

0 Answers0