I have a closed-source C++ application that includes an embedded CPython interpreter. It ships with a directory full of example Python scripts that I wrote, which perform useful actions within the context of the application.
When the user clicks the "run script" button in the GUI, the C++ application launches a child process (via
execvp() of its own executable), with special command line arguments telling it to run the CPython interpreter on the filepath of the appropriate
.py file. The Python script then connects back to the parent process (via a local TCP connection) to interact with it.
My question is, if I include a GPL'd Python script in my directory of example scripts, am I violating the GPL? (I suspect yes, but given that I'd be including the source code of the GPL'd Python script in the distribution, and not linking it to any of the closed-source code, I'm not sure that it would be a violation)