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

S

sndive

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,042
Latest member
icassiem

Latest Threads

Top