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