ImportError in embedded Python Interpreter

googler.1.webmaster at spamgourmet.com googler.1.webmaster at spamgourmet.com
Fri Jan 30 11:50:45 CET 2009


Hi!

Okay, thats just the question. I did that what you wrote but it
doesn't really works.
What is, if Py_SetProgramName() gets a NULL Pointer, if argv[0] is
empty?

Well, the problem is, in my opinion that os.environ returns some paths
in python.exe
and in my embedded interpreter if I call os.environ in Py_Main(...)

When I call it in my PyRun_SimpleString(...) it returns nothing.
Hm.. thats really strange.



More information about the Python-list mailing list