'Import sys' succeeds in C++ embedded code, but module is not fully visible

Ivan Illarionov ivan.illarionov at gmail.com
Wed Jan 14 11:37:28 EST 2009


On Jan 14, 1:49 pm, Ben Sizer <kylo... at gmail.com> wrote:
> No, I don't want to do anything with sys.path apart from see it. I
> just wanted my original question answered, not a guess at my intent
> and a solution for something I'm not doing. ;)  Thanks though!
>
> Again - why can I not reference sys from within the function?


Ah, sorry for wrong guess.

I would try to use ourNamespace_ dict for
both globals and locals in PyRun_String call.

--
Ivan



More information about the Python-list mailing list