debug Python interpreter work with the debug swig dll
Irina Kotlova
Irina.Kotlova at lhsl.com
Fri Aug 31 09:21:37 EDT 2001
Hello All,
Could anyone advise how to make debug Python interpreter "python_d" to
import the previously built dll with a module? The module is the
interface file "employee.i" with the simple C++ class inside. The dll
build procedure consists of swig generating wrappers for Python and
then compiling and linking of a class along with the wrappers.
That scheme works fine in Release mode with "python" interpreter, but
doesn't in Debug mode. When I start "python_d" and then do import, I
receive:
C:\>D:\Python21Sources\Python-2.1\PCbuild\python_d
Adding parser accelerators ...
Done.
Python 2.1 (#15, Aug 30 2001, 14:27:06) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> import employee
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named employee
[5398 refs]
PYTHONPATH environment variable includes the path where "employee.dll"
resides.
Help is very appreciated. Thank you,
Irina Kotlova
More information about the Python-list
mailing list