Execute python script via C API line-by-line
Oliver Eichler
oliver.eichler at dspsolutions.de
Fri Jun 28 03:42:43 EDT 2002
Hi
Is it possible to execute a Python script via C API interactively? Like:
- read the file
- execute 1st line
- tell next/current line (especially usefull for loops and function calls)
- execute next line
- ...
As far as I can see from the documentation I can use the normal commandline
interface or execute a file as one single call. There seems to be some
parsing functionality described, however, the official API documentaion is
too brief to make much sense to start with. Is there a better C API docu to
start with (books/link)? Something explaining the concepts in detail?
Just as background:
I would like to control some hardware via python script for testing
purposes. That's why I would like to step thru the script line-by-line. The
aim is to have a text edit widget with the script code and the current line
to process highlighted.
Thanks for hints, details and stuff
Oliver
More information about the Python-list
mailing list