This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const chokidar = require("chokidar") | |
const { PythonShell } = require("python-shell") | |
let pyshell | |
const scriptName = "script.py" | |
// Function to run Python scripts | |
const runPythonScript = () => { | |
pyshell = new PythonShell(scriptName, { | |
pythonPath: "./venv/Scripts/python", // Specify the path to your Python environment |
OlderNewer