'Import sys' succeeds in C++ embedded code, but module is not fully visible
aahz at pythoncraft.com
Wed Jan 21 16:19:44 CET 2009
In article <b11e6e8a-98a6-43d1-b311-652fedbe7498 at h5g2000yqh.googlegroups.com>,
Ben Sizer <kylotan at gmail.com> wrote:
>I have the following C++ code and am attempting to embed Python 2.5,
>but although the "import sys" statement works, attempting to reference
>"sys.path" from inside a function after that point fails. It's as if
>it's not treating it as a normal module but as any other global
>variable which I'd have to explicitly qualify.
After skimming the thread and seeing a lack of answer, I suggest you try
capi-sig at python.org
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Weinberg's Second Law: If builders built buildings the way programmers wrote
programs, then the first woodpecker that came along would destroy civilization.
More information about the Python-list