Re: Problem with sys.path when embedding Python3 in C

2010-03-23 Thread Gabriel Genellina
En Mon, 22 Mar 2010 18:19:49 -0300, Krister Svanlund krister.svanl...@gmail.com escribió: Hi, I've recently begun experimenting with embedding python and i got a small problem. The following line here is the ugly-hack I had to do to make it work, nothing else I know of makes it possible to

Re: Problem with sys.path when embedding Python3 in C

2010-03-23 Thread Krister Svanlund
On Tue, Mar 23, 2010 at 8:07 AM, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Mon, 22 Mar 2010 18:19:49 -0300, Krister Svanlund krister.svanl...@gmail.com escribió: Hi, I've recently begun experimenting with embedding python and i got a small problem. The following line here is the

Problem with sys.path when embedding Python3 in C

2010-03-22 Thread Krister Svanlund
Hi, I've recently begun experimenting with embedding python and i got a small problem. This is my current testing code (basically all from python docs): int main(int argc, char *argv[]) { PyObject *pModuleName, *pTestModule, *pTestFunc, *pTestResult, *pTestArgs;