Skip to content

Feature: Python to node communication using RPC server #440

Merged
timotheeguerin merged 42 commits into
masterfrom
feature/python2
Jun 16, 2017
Merged

Feature: Python to node communication using RPC server #440
timotheeguerin merged 42 commits into
masterfrom
feature/python2

Conversation

@timotheeguerin
Copy link
Copy Markdown
Member

fix #439

Comment thread .travis.yml Outdated
only:
- master
- stable
- feature/python2
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove when ready

import { exec } from "child_process";

let computedPythonPath: string = null;
export function execPromise(command: string) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to a general util file

*/
public start(): Promise<void> {
return getPythonPath().then((pythonPath) => {
this._spawedProcess = spawn(pythonPath, [pythonFile]);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to check for errors and listen to kill

@timotheeguerin timotheeguerin merged commit 49cd040 into master Jun 16, 2017
@timotheeguerin timotheeguerin deleted the feature/python2 branch June 16, 2017 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python integration

2 participants