Stuart <[EMAIL PROTECTED]> wrote:
   ...
> PyObject *rstring = PyRun_String( cmd, Py_file_input, main_dict,
> dlfl_dict );

You're passing difl_dict as the "locals" to PyRun_String -- but a
function has its own locals, so it won't use those locals.  Just update
main_dict with difl_dict (that's the equivalent of the "from difl import
*" which you appear to desire) and use main_dict for both globals and
locals in your PyRun_String call.


Alex
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to