Re: Extending Embedded Python and execute external script

2007-01-04 Thread Fredrik Lundh
"Vertilka" <[EMAIL PROTECTED]> wrote: > I saw several functions: PyRun_AnyFileExFlags, PyRun_SimpleFileExFlags, > PyRun_FileExFlags. > > Questions: > 1) Which one should i use in order to achieve what i need ? PyRun_SimpleFile or PyRun_SimpleString should be good enough. Using SimpleString is mo

Extending Embedded Python and execute external script

2007-01-04 Thread Vertilka
What i need from my C application to do ? 1) To execute a python script from file. 2) The python script will call functions in my C application. According to the answer from Ravi Teja (topic "C app and Python"), I need to extend embedded python in my C application. I saw several functions: PyRun_