How do I build python with debug info? (and python module load questions)

sndive at gmail.com sndive at gmail.com
Thu Jan 25 21:30:09 EST 2007


I want to step into PyImport_ImportModule("my_foo") that's failing
despite the my_foo.py
being in the current directory. (PyRun_SimpleFileEx works on the exact
same file).
How would I run configure to build libpython with -g?

I wonder if I should just keep using PyRun_SimpleFileEx.

I want to be able to call arbitrary functions in the imported
file/module
using PyRun_SimpleString("import my_foo\nmy_foo.bar(whatever)")
after the file is loaded.

There is no '' in sys.path, I assume that should not affect
PyImport_ImportModule
to look in the current directory first. Does it?

Thank you!




More information about the Python-list mailing list