File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1- # c++ launches a Python script that loads a shared library module and sets a c++ variable
1+ # qt application calling a python script access the c++ API of the application
22
33- Create a ` .so ` module.
44- Call the Python script from the c++ code and pass a variable per reference.
@@ -11,5 +11,3 @@ $ cmake -Dpybind11_DIR=/home/ale/bin/pybind11/share/cmake/pybind11 -DCMAKE_BUILD
1111$ make
1212$ ./sample
1313~~~
14-
15- For now, you have to copy the generated ` fooapi.cpython-35m-x86_64-linux-gnu.so ` file next to the python script.
Original file line number Diff line number Diff line change 11#include " scripter.h"
22#include " scripterAPI.h"
33
4- using namespace pybind11 ::literals;
4+ using namespace pybind11 ::literals; // for the ""_a
55
66void Scripter::runFile (std::string fileName)
77{
You can’t perform that action at this time.
0 commit comments