A
A
Ariurn2018-08-29 13:26:15
Python
Ariurn, 2018-08-29 13:26:15

How to run .cpp script in python?

Hello!
.cpp scripts for calculations in the field of algebra, discrete mathematics, etc. were written for our own use. It is planned to write a web application based on the Django python framework (there is an experience of using it). The question is the following: how to run a .cpp script from a django class-based view with passing parameters and returning the result of calculations? The scripts themselves are written in such a way that they can be passed parameters through the Visual Studio developer console (using argv, your cap).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2018-08-29
@Ariurn

Well, either look for a plus interpreter (it seems there were even some), or - which is better - compile it into an executable file and call it through subprocess for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question