Skip to content

Synchronized execution of python script #170

Description

@dhaval-lila

Is there way trun python script in sync with node

function() {
   let pyshell = new PythonShell('.myscript.py')
let content = ""
    pyshell.on('message',function(message){
        content = message
    })
return content // content needs to be message instead due to async nature it returns empty string
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions