0

I have a command line program developed in c. Lets say, i have a parser written in C. Now i am developing a project with gui in python and i need that parser for python project. In c we can invoke a system call and redirect the output to system.out or a file. Is there are any way to do this python? I have both code and executable file of c program. Thanks in advance.

1

2 Answers 2

1

Sure you can, go for a subprocess. Docs are here: http://docs.python.org/library/subprocess.html#module-subprocess

Sign up to request clarification or add additional context in comments.

Comments

1

To call other programs and interact with them use the subprocess module.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.