Skip to content

Commit 08ec8ad

Browse files
committed
...
1 parent 0d8255f commit 08ec8ad

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

qt-5-pyqt5/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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.

qt-5-pyqt5/src/scripter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "scripter.h"
22
#include "scripterAPI.h"
33

4-
using namespace pybind11::literals;
4+
using namespace pybind11::literals; // for the ""_a
55

66
void Scripter::runFile(std::string fileName)
77
{

0 commit comments

Comments
 (0)