[C++-sig] how can i import a module without executing any code?

冶晶邓 fatfatson at gmail.com
Tue Apr 18 10:46:36 CEST 2006

when i use PyImport_Import() to import a module writen in Python, the global
statement in which will by executed automatically,
while i don't want so,i'd like the python-programmer to write their initial
code in a "init()" function, and i will call it in C at the proper time
how can i make it so?
thanks very much,especially for endureing my bad english:)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20060418/8e1af5f8/attachment.htm>

More information about the Cplusplus-sig mailing list