help python swig problem

2005-11-30 Thread [EMAIL PROTECTED]
Hi, I tried to follow the example in swig homepage. I found error which I don't understand. I use bcc32, I already include directory where my python.h exist in bcc32.cfg. /* File : example.c */ #include double My_variable = 3.0; int fact(int n) { if (n <= 1) return 1; else return

swig problem

2005-10-25 Thread klemens letulé
Aloa, I'm new to python as to swig... so my question goes here. I am using swig to call a c function which returns a char*. I do this: ... i = 1 while i <= 2: result, chainName = cgiServer.rpcGetTempParameterAttribut ("//firewall-input[" + str(i) + "]") print cha

Re: after embedding and extending python (using swig) problem importing (non-core) modules

2004-12-08 Thread stefan
thanks a lot for the quick answer. I had to provide the debug-versions, since I was in debug mode, like you already expected! thanks a lot again! -stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: after embedding and extending python (using swig) problem importing (non-core) modules

2004-12-07 Thread Donnie Leen
Du you use program in linux? I work in windows, but I think it's a way to tell your program the module path like this: char path[MAX_PATH], cpy_cmd[MAX_PATH]; GetCurrentDirectory( MAX_PATH, path ); sprintf( cpy_cmd, "sys.path.append(r\'%s\\modules\')", path ); PyRun_SimpleString("import sys");

Re: after embedding and extending python (using swig) problem importing (non-core) modules

2004-12-07 Thread Donnie Leen
Du you use program in linux? I work in windows, but I think it's a way to tell your program the module path like this:    char path[MAX_PATH], cpy_cmd[MAX_PATH]; GetCurrentDirectory( MAX_PATH, path ); sprintf( cpy_cmd, "sys.path.append(r\'%s\\modules\')", path );    PyRun_SimpleStri

Re: after embedding and extending python (using swig) problem importing (non-core) modules

2004-12-07 Thread vincent wehren
stefan wrote: Hi Folks, I currenty extended some of my C++ functionality to python and also embedded python to use python functionality in my C++ system (and use as well these extended functions). While this works fine with the core python functionality, as soon as I run a script (on the embedded s

after embedding and extending python (using swig) problem importing (non-core) modules

2004-12-07 Thread stefan
Hi Folks, I currenty extended some of my C++ functionality to python and also embedded python to use python functionality in my C++ system (and use as well these extended functions). While this works fine with the core python functionality, as soon as I run a script (on the embedded system) which